summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/widgetdelegate.cpp
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2024-01-29 16:37:49 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2024-02-01 21:50:50 +0100
commit0e8a8c3aa29b2007a2a2a3baec4bb52f7d9e7335 (patch)
tree1160e21b7577cbdbffe7ef600c74e8e0317560ce /src/widgets/doc/snippets/widgetdelegate.cpp
parent4b2eb26bf99f5bda3ca579213a6db4363059c0aa (diff)
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>
Diffstat (limited to 'src/widgets/doc/snippets/widgetdelegate.cpp')
0 files changed, 0 insertions, 0 deletions