Create new instance of Python class in C

phil hunt zen19725 at zen.co.uk
Fri Sep 9 18:48:43 EDT 2005


On Fri, 9 Sep 2005 18:50:26 +0200, Sybren Stuvel <sybrenUSE at YOURthirdtower.com.imagination> wrote:
>djw enlightened us with:
>> Personally, I would try Psyco first, and consider Pyrex next.
>
>Ok, I'll take a look at those.
>
>> Are you sure your algorithm can't be optimized first, before you
>> start trying to write this in C?
>
>I'm sure there will be optimizations, but profiling showed that the
>copying of the puzzles took the most time. Since the copy.deepcopy()
>function is implemented it Python, I'd thought it would get quite a
>speed boost when done in C instead.

Can you use a different algorithm that doesn't make so many copies?

-- 
Email: zen19725 at zen dot co dot uk





More information about the Python-list mailing list