MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / run_bisect

Function run_bisect

example_code/item_102.py:98–100  ·  view source on GitHub ↗
(data, to_lookup)

Source from the content-addressed store, hash-verified

96 data.index(index)
97
98def run_bisect(data, to_lookup):
99 for index in to_lookup:
100 bisect_left(data, index)
101
102baseline = (
103 timeit.timeit(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected