i had prepared a project on making a software application. It is complete and working fine except that the speed of execution is very slow..i have taken several chunks of code and optimized it..
i tried psyco..ie i installed psyco and added two lines on the top of my code import psyco psyco.full()
Don't know whether this is the way using psyco..if this is wrong.please tell me how to use psyco..coz i added this and found no improvement..
i have tried profiling and i know the code lines taking time but these cant be further optimized and are unavoidable line of code..
i also thought of option of rewriting the code in 'c' using some python package..but i always had a very bad experience in using additional package of python which are not part of basic python..
i am using python 2.6 and windows vista..please kindly tell methods method for increasing the speed of execution of the whole code significantly..atleast 5x times..please..
i havent writen my code in method,there few method in between thou..there is no main..
yes as few suggested my is an IO bound problem..as i need to call the code some 500 times and this involves opening and closing of files of atleast 2 per call.. Ans here when opening a .pm file, it has two collumms and i need the first collums only ,so i am coping the entire first columns into the list and passing it to a function to get its row number and then opening other file to get the elements of that row number into a list... this is the task i wanted...i guess loading the elements of first columns into the list is time consumming any idea to rectify this.. how can i improve the performance for IO bound bottlenecks looking for help desperately