Speedup Bitmap Parser
santosdosreis at gmail.com
Tue Feb 17 14:47:07 CET 2009
On 16 fev, 21:47, bearophileH... at lycos.com wrote:
> Jayson Santos:
> > Do I need use some patters or others progamming conventions ?
> That's a strong question...
> Knowing OOP well is important, and it's often a good way to program,
> etc. But... You may try to rewrite your code with functions only and
> no classes (well, you may need to use classes for the TK gui).
> Feel free to not follow this suggestion of mine. Even if you follow
> it, it will not damage your brain :-)
Thank you for all.
After changing my code to use only functions instead classes my code
is too much faster.
Here cProfile statistcs:
Using old code : 633608 function calls in 1.361 CPU seconds
Using new code: 475487 function calls in 0.800 CPU seconds
More information about the Python-list