is c faster?

Courageous jkraska1 at san.rr.com
Sat Jun 9 04:11:50 EDT 2001


On Sat, 9 Jun 2001 01:43:20 -0700, "akhar" <akhar at videotron.ca> wrote:

>I have a script I wrote in python , I love the time it took me to  devellop
>it faster than i could have done it in C. however after full review of my
>code I am not sure I can optimize it any more( it basicaly consist of
>importing an image and tranforming into a matrix to perform some for-looped
>operations on it) : I went from 20 seconds to 2.

There are a variety of native image importing libraries out there already.
They are very fast (and coded in C). I think the one you want is called "PIL".

C//




More information about the Python-list mailing list