Wiki Wiki Wiki Wild Wild West

From CDOT Wiki
Revision as of 09:12, 31 October 2012 by Dylan Potter (talk | contribs) (Profiling)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Source available at, third link from the top. UnRAR is a tool used to unpack RAR archives.


See screenshot of Instruments (MacOS X) profiling tool: 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:

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

Unlike Dale's profile, I'm seeing Unpack::Unpack29(bool) as the routine with the longest running time (about 86% of total running time)