vdirsyncer/vdirsyncer
Enrico Guiraud 85ae33955f
Prevent single file storage from performing unnecessary N^2 loop
For single file storage we wrap the logic of get_multi with the
at_once context manager so that `self.list()` (which is called by
`self.get()`) actually caches the items rather than re-computing
them at every call.

This should largely mitigate the performance issue describe at
https://github.com/pimutils/vdirsyncer/issues/818 . The issue
discussion also contains more background about this patch.
2023-03-09 17:59:20 -06:00
..
cli Remove superfluous exception parens 2023-02-10 16:57:39 +01:00
storage Prevent single file storage from performing unnecessary N^2 loop 2023-03-09 17:59:20 -06:00
sync Remove superfluous exception parens 2023-02-10 16:57:39 +01:00
__init__.py Use black to auto-format the codebase 2021-05-06 19:28:54 +02:00
__main__.py Use black to auto-format the codebase 2021-05-06 19:28:54 +02:00
exceptions.py Use black to auto-format the codebase 2021-05-06 19:28:54 +02:00
http.py Fix crash when using auth certs 2023-02-28 16:21:28 +01:00
metasync.py vdirsyncer/metasync.py: for read_only storages adjust the metadata resolution in favour of the read_only storage 2022-01-14 13:52:04 +02:00
repair.py Remove superfluous exception parens 2023-02-10 16:57:39 +01:00
utils.py Fix mistaken return type 2022-11-19 15:17:11 +01:00
vobject.py Remove superfluous exception parens 2023-02-10 16:57:39 +01:00