more takeout tweaks and comments

This commit is contained in:
Dima Gerasimov 2020-04-24 15:57:44 +01:00
parent 21e82f0cd6
commit 60ccca52ad
4 changed files with 35 additions and 11 deletions

18
tests/takeout.py Normal file
View file

@ -0,0 +1,18 @@
#!/usr/bin/env python3
from itertools import islice
from my.core.cachew import disable_cachew
disable_cachew()
import my.location.takeout as LT
def ilen(it):
# TODO more_itertools?
return len(list(it))
def test_location_perf():
# 2.80 s for 10 iterations and 10K points
# TODO try switching to jq and see how it goes? not sure..
print(ilen(islice(LT.iter_locations(), 0, 10000)))