MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / mp_map

Method mp_map

test/performance/perf_test.py:213–215  ·  view source on GitHub ↗
(self, map_func, files)

Source from the content-addressed store, hash-verified

211 self.results = results
212
213 def mp_map(self, map_func, files):
214 with mp.Pool(initializer=proc_init, initargs=(client_context.client_options,)) as pool:
215 pool.map(map_func, files)
216
217
218# BSON MICRO-BENCHMARKS

Callers 5

do_taskMethod · 0.80
setUpMethod · 0.80
do_taskMethod · 0.80
do_taskMethod · 0.80
do_taskMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected