Open main menu

CDOT Wiki β

Wiki Wiki Wiki Wild Wild West

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)