auto rename: best matches and speed improvements UPDATE2
Herbert Griebel
herbertg at gmx.at
Thu Oct 2 09:06:56 CDT 2008
>> + dataobj = PyString_FromStringAndSize(NULL, sizeof(STATDATA));
>> + stat = (STATDATA*) PyString_AS_STRING(dataobj);
>
> You could put the pointer inside a CObject instead of putting it in a string
> (and use malloc)
I checked again, and the same approach is used multiple times in Python itself,
there is a simple example in the module imgfile, functions imgfile_write and
imgfile_read.
I fixed the findings from Benoit, update is in the next mail.
Regards,
Herbert
More information about the Mercurial-devel
mailing list