From: Jan D. <in...@ja...> - 2002-07-23 13:52:49
|
Finn Bock wrote: >> - are there certain operations in Jython that are substantially more >> expensive than their CPython counterpart and should be avoided? > > Using the "exec" statement or the "eval" or "compile" function are a lot > slower in jython than in CPython. It is because jython creates a java > class dynamicly and loads that javaclass with a classloader. This is at > least a magnitude slower for jython than for CPython. > Unfortunately, I use neither "exec", "eval" or "compile". In fact, the code is really not sophisticated, just the usual, common things: creating objects, accessing members, invoking methods, working with lists and dicts, ... In absense of obvious pitfalls, I guess I'll sweat it out and profile the application in detail, so I can more precisely pinpoint where all the time is going to. Regards, Jan |