On 16 fev, 21:47, bearophileh...@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 :-) > > Bye, > bearophile
Hello bearophile, 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 Best Regards Jayson Reis -- http://mail.python.org/mailman/listinfo/python-list