commit | fd3a9fb0c3b555d2fc93a6436da840ab4ea2fac1 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Thu Feb 27 18:18:25 2014 -0800 |
committer | Elliott Hughes <enh@google.com> | Thu Feb 27 18:18:25 2014 -0800 |
tree | b8ddb1c1295a097cc884edc21cfef37c4cb79d30 | |
parent | e33454051677cd8953af558b67e525dda2231501 [diff] |
Vastly reduce the number of read(2)s done in tzload. This costs us about 1000 fewer syscalls, which makes "adb shell strace date" a lot more readable (which is the reason I've been meaning to fix this for a long time now), but also actually saves a measurable amount of time. Longer-term we should try to keep the tzdata mmap(2)ed in like libcore does. Change-Id: I1dd9c81968a13d3a6a55ba17f8a7d5c1f38cd103