[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #32299 [Core Tor/Tor]: read GeoIPFile and GeoIP6File straight out of APK file (Android-only)
#32299: read GeoIPFile and GeoIP6File straight out of APK file (Android-only)
---------------------------------+------------------------------
Reporter: eighthave | Owner: (none)
Type: enhancement | Status: new
Priority: Medium | Component: Core Tor/Tor
Version: | Severity: Normal
Keywords: Android, tbb-mobile | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
---------------------------------+------------------------------
Right now, the ''geoip'' and ''geoip6'' files are packed into the APK,
which is basically a ZIP/JAR file. Then when Orbot/TorBrowser/etc starts,
it unzips those files to a local folder. Since those files are read only,
they could be read directly out of the zip file. This would mean faster
startup times and less disk space in use. Right now, there is a full ZIP
read, then a full write, then a full read from disk.
I believe that tor is already linked against zlib, so the functions are
there. In any case, zlib is one of the few libs that are provided by the
NDK.
Android already does things like this. For example, PNG files are stored
uncompressed in the APK. The whole ZIP file is byte aligned for each PNG
reading. Then the APK maintains a list of pointers to the byte position
in the APK file a PNG file can be read from.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/32299>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs