Difference between revisions of "Wiki Wiki Wiki Wild Wild West"
(→Profiling) |
Dylan Potter (talk | contribs) (→Profiling) |
||
Line 11: | Line 11: | ||
Source code of method: http://pastebin.com/0L3tMwAc | Source code of method: http://pastebin.com/0L3tMwAc | ||
+ | |||
+ | == Second Profile Run == | ||
+ | After altering makefile.unix to run g++ with the -pg flag, my profile run involved extracting from an 8.3gb file with command `~/unrar/unrar x ~/SoundPacksDist.rar ~/SoundPacks/'. This yielded the following gprof report [http://pastebin.com/XMKVn47g http://pastebin.com/XMKVn47g] | ||
+ | |||
+ | Unlike Dale's profile, I'm seeing Unpack::Unpack29(bool) as the routine with the longest running time (about 86% of total running time) |
Latest revision as of 09:12, 31 October 2012
UnRAR
Source available at http://www.rarlab.com/rar_add.htm, third link from the top. UnRAR is a tool used to unpack RAR archives.
Profiling
See screenshot of Instruments (MacOS X) profiling tool: http://i.imgur.com/JT5sz.png The above profile was done an archive containing a 1GB binary file containing dummy data.
- Method that takes the most time: CopyString(int, int) of the Unpack class
Source code of method: http://pastebin.com/0L3tMwAc
Second Profile Run
After altering makefile.unix to run g++ with the -pg flag, my profile run involved extracting from an 8.3gb file with command `~/unrar/unrar x ~/SoundPacksDist.rar ~/SoundPacks/'. This yielded the following gprof report http://pastebin.com/XMKVn47g
Unlike Dale's profile, I'm seeing Unpack::Unpack29(bool) as the routine with the longest running time (about 86% of total running time)