From: Francesc A. <fa...@ca...> - 2006-08-18 15:08:27
|
A Divendres 18 Agost 2006 16:44, Chris Kees va escriure: > Can you provide some details about your approach to migrating to > NumPy? Are you following some documentation on migration or do you > have your own plan of attack? Well, to say the truth none of both ;-). The truth is that I was trying to= =20 accelerate some parts of my software and realized that numarray was an=20 important bottleneck. NumPy was already in advanced beta stage and some sma= ll=20 benchmarks conviced me that it would be the solution. So, I started porting= =20 one single C extension (PyTables has several), the simplest one, and checke= d=20 that the results were correct (and confirmed that the new code was much=20 faster!). After that, the second extension came converted and I'm in the=20 process of checking everything. Now, there remains 3 more extensions to=20 migrate, but the important ones for me are done. So, no plans other than having a good motivation (and the need for speed wa= s a=20 very good one). However, I think that having a complete test suite checking= =20 every detail of your software was key. Also, having access to the excellent= =20 book by Travis was extremely helpful. Finally, having IPython opened to che= ck=20 everything, look at online docstrings and be able to do fast timings added= =20 the "cerise sur le g=E2teau". Luck! =2D-=20 >0,0< Francesc Altet =A0 =A0 http://www.carabos.com/ V V C=E1rabos Coop. V. =A0=A0Enjoy Data "-" |