Improve the poor man's fseek in unarchive.c
authorpixdamix <pixdamix@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Tue, 27 Oct 2009 21:15:50 +0000 (21:15 +0000)
committerpixdamix <pixdamix@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Tue, 27 Oct 2009 21:15:50 +0000 (21:15 +0000)
commit3c9460a62e86e92cac8695317efb6d56ecabfb71
tree03bd31950f71291690aa2c38a104230c34e7116c
parent587f690ff0ba0ec6b91bd4b83fa39305120e8e93
Improve the poor man's fseek in unarchive.c

Modified seek_sub_file since the fgetc in the for loop
was very slow when installing huge packages.

A test on my machine showed a 4x gain when installing
a large package (23Mib)

git-svn-id: http://opkg.googlecode.com/svn/trunk@222 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
libbb/unarchive.c