Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: use raw sqlalchemy row iterator, speeds up reading from cachew …
…by about 25% before ``` src/cachew/tests/test_cachew.py::test_many[gc_off-1000000] [INFO 2023-09-14 22:04:14,721 cachew __init__.py:796 ] cachew.tests.test_cachew:test_many.<locals>.iter_data: wrote 1000000 objects to cachew (sqlite /tmp/pytest-of-karlicos/pytest-90/test_many_gc_off_1000000_0/test_many) test_many: initial write to cache took 3.2s test_many: cache size is 72.904704Mb [INFO 2023-09-14 22:04:15,020 cachew __init__.py:660 ] cachew.tests.test_cachew:test_many.<locals>.iter_data: loading 1000000 objects from cachew (sqlite /tmp/pytest-of-karlicos/pytest-90/test_many_gc_off_1000000_0/test_many) test_many: reading from cache took 2.8s ``` after ``` src/cachew/tests/test_cachew.py::test_many[gc_off-1000000] [INFO 2023-09-14 22:04:36,065 cachew __init__.py:796 ] cachew.tests.test_cachew:test_many.<locals>.iter_data: wrote 1000000 objects to cachew (sqlite /tmp/pytest-of-karlicos/pytest-91/test_many_gc_off_1000000_0/test_many) test_many: initial write to cache took 3.3s test_many: cache size is 72.904704Mb [INFO 2023-09-14 22:04:36,427 cachew __init__.py:660 ] cachew.tests.test_cachew:test_many.<locals>.iter_data: loading 1000000 objects from cachew (sqlite /tmp/pytest-of-karlicos/pytest-91/test_many_gc_off_1000000_0/test_many) test_many: reading from cache took 2.2s ```
- Loading branch information