[Bf-python] Python API refactoring wiki
Joe Eagar
joeedh at gmail.com
Fri Jan 27 12:24:51 CET 2006
jmsoler at free.fr wrote:
> Selon Campbell Barton <cbarton at metavr.com>:
>
>
>> Hey Guys, started a wiki page for python api refactoring.. check it out.
>> http://mediawiki.blender.org/index.php/BlenderDev/BpyApiDiscussion
>>
>>
>
> About this :
> " Will we maintain NMesh? (seems like a good time to get rid of it)",
> just a word, create a simple vertex with Mesh is 60/70 times slower
> than with NMesh .
>
If NMesh was deprecated, would it be possible to write a python wrapper
around it? That way existing scripts could use the wrapper instead of
having to do a full rewrite.
And I noticed that in the verts.extend C function the vert list is
reallocated every time. I would think that allocating extra space at
each call (so that the list is reallocated every 10 .extends, the other
9 calls using this extra allocated space) would be faster, although
admittedly I've only done this for pointer arrays so I have no
experience with this sort of thing.
joeedh
More information about the Bf-python
mailing list