-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QTZP: use binary search more on timezone ID tables
The zone and Windows data tables are sorted on Windows ID and its key (which are monotonic functions of one another) so we can use binary chop to find the first matching entry in each, when searching on these. Furthermore, the search for ID from key can be shortcut as the keys should normally be consecutive integers starting with 1. Change-Id: I53f7ff8c93fd6d3d9e48c7bb86060746b68fab3d Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
- Loading branch information
1 parent
4b2eb26
commit 0e8a8c3
Showing
1 changed file
with
65 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters