| Jon Stewart on Mon, 3 Jan 2005 15:42:08 -0600 (CST) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: [nimh-dev] more format profiling |
> These are the top 10 functions by cumulative time. Of the 0.743s that > nscan.py takes, most of that is spent in test, which is the format code. > Unfortunately, 5/6 of the time used by test is for Folder.openmessage(), > so my format code is within 0.074s of optimality. Folder.openmessage() wraps > Message.message_from_file(), and from there execution goes off into the > email module. So it looks like reducing execution time significantly would > involve implementing some of the email module ourselves. Ick. Another possible refactoring for higher performance would be figuring out how to issue the i/o calls as efficiently as possible. Almost all processing will involve every file in a directory. Having some way to open and read those files asynchronously, en masse, would seem to make some sense. Jon -- Jon Stewart Advanced Los Angeles C++ stew1@xxxxxxxxxxx http://www.alacpp.org _______________________________________________ nimh-dev mailing list nimh-dev@xxxxxxxxxxx http://lists.ellipsis.cx/mailman/listinfo/nimh-dev