On Friday 03 July 2009 21:07:13 Michael Sparks wrote: > But the first step is to get a threaded chassis working. > > As noted, an optimisation is to "simply" convert the component from one > type to another, but that has slightly more risk involved, and I think > starting with something constrained like this makes the most sense. I > suspect though that for somethings though actually /converting/ the > component from generator to threaded would make the most sense. > > It'll probably force a small rethink of some areas, but this is probably > the best initial solution to the problem "How do I use all my CPUs" since > it would provide a natural path for migrating from generators to threads, > and on a GIL-less implementation of python (IronPython, Jython, etc), it > would allow the use of multiple CPUs relatively cleanly.
For what it's worth, I think this is now a far far less theoretical question than it was just 4 weeks ago. The reason I say that is due to the various reports from people on the list saying that Kamaelia "kinda" works on Jython before then, and the fact that Sylvain's XMPP code now runs on top of Jython on top of Kamaelia. We've been chatting on IRC about that, and then I realised that one way for Sylvain to get better performance out of the system wouldn't be to optimise the code, but to change Kamaelia slightly to implement the threaded chassis, which then allows more performance by just adding CPUs to the box... Which is a really neat/promising thought. At the moment I'm working on reviewing, refactoring, merging or rejecting code in /branches which been there for a while, but would really welcome any thoughts, suggestions, code sketches etc working towards getting that working. Otherwise I know what my next goal is :-) Regards, Michael. -- http://yeoldeclue.com/blog http://twitter.com/kamaelian http://www.kamaelia.org/Home --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "kamaelia" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/kamaelia?hl=en -~----------~----~----~----~------~----~------~--~---
