An interesting read for makeing those python scripts run a lot faster.
For a set of 16 non-trivial test programs, measurements show a typical speedup of 2-40 over Psyco, about 12 on average, and 2-220 over CPython, about 45 on average.
An interesting read for makeing those python scripts run a lot faster.
For a set of 16 non-trivial test programs, measurements show a typical speedup of 2-40 over Psyco, about 12 on average, and 2-220 over CPython, about 45 on average.
looks amazing: but how will that work in combo with blender???
can you compile anything through that that calls on things from the blender api? I doubt that.
Nice for people like me that don’t know c but do know python though.
an you compile anything through that that calls on things from the blender api?
No, but according to what he writes, things like that shouldn’t be hard to implement.
Being able to call on a .exe like a python script would be amazing, I mean… really amazing… that would open up a whole new world of efficiency/speedyness.
but you could write a python module in c and get the same effect
z3ro d: well yeah I mean you could code anything straight into blender. The thing is that we can do some quite experimental and weird stuff through python now. Things that perhaps shouldn’t be in the source. It would be nice if they would run as efficiently as if they were though (or close).
Or if you mean that it’s already possible to create a plugin in c or c++ then please let us know how.
I think what z3ro means is that you can write the CPU intensive parts in C and call them from within a Python script. You can sort of mix the two. But you really have to know what you’re doing.
Thats exactly what the blender python api is: CPU intensive parts written in C and callable from a Python script
Yeah, but we are like Brainiac Super Geniuses.
/me high-fives ascotan as they both collapse ROFLing
This will be nice to paly around with, if you can get speedups for very little work, then excellent! (lazy, yes, yes I know)
Ian
Psyco works with blender. I’ve allready used it.
try:
import psyco
# compile all python objects/functions currently in memory
# do this AFTER defining and instanciation of your classes:
psyco.full()
has_psyco = True
except ImportError:
has_psyco = False