That all depends on how it is written. If you are using a lot of  
python data types, it will be slower. If not, you can write Cython  
that translates to nearly pure C (and runs at that speed).

- Robert


On Mar 4, 2008, at 10:21 PM, Carlo Hamalainen wrote:

>
> Hi,
>
> I have this request for Cython benchmarks on a blog post of mine - is
> there any data out there, specifically comparing Cython to C/C++?
>
> -- 
> Carlo Hamalainen
> http://carlo-hamalainen.net
>
>
>
> ---------- Forwarded message ----------
> http://carlo-hamalainen.net/blog/?p=19
>  Author : Robert Samal
>  E-mail : [EMAIL PROTECTED]
>
>  Does somebody else have some experience in how cython compares
>  with C/C++? Every once in a while I need to do some computation
> (something NP-complete or worse in general, so it
>  usually ends up as an ugly backtracking). I'd be happy to do
> everything from within Sage (and using python/cython), but I'm not
> sure, if it is fast enough (or if it getting fast enough, I suppose
> that cython is improving gradually).
>
> 

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to