A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/346040.html below:

Create new instance of Python class in C

Create new instance of Python class in C Create new instance of Python class in CSybren Stuvel sybrenUSE at YOURthirdtower.com.imagination
Fri Sep 9 12:50:26 EDT 2005
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.

As a side-question: how would I go about compiling my C module in
Windows, if I want to ship a Windows version?

Sybren
-- 
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself? 
                                             Frank Zappa

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4