- Feb 24, 2018
-
-
Andreas Klöckner authored
-
Andreas Klöckner authored
-
- Dec 07, 2017
-
-
Andreas Klöckner authored
Fix generate_numbered_unique_names() to respect the counter argument. Closes #1 See merge request !10
-
- Dec 06, 2017
-
-
Matt Wala authored
Closes #1
-
- Nov 22, 2017
-
-
-
Andreas Klöckner authored
-
- Nov 08, 2017
-
-
Andreas Klöckner authored
Improve persistent dict documentation. See merge request inducer/pytools!9
-
- Oct 31, 2017
-
-
Matt Wala authored
-
- Oct 29, 2017
-
-
Andreas Klöckner authored
-
- Oct 21, 2017
-
-
-
Andreas Klöckner authored
-
- Oct 06, 2017
-
-
Andreas Klöckner authored
Nicer warning behavior for PersistentDict See merge request !7
-
- Oct 05, 2017
-
-
Matt Wala authored
* Add a CacheCollision warning subclass. * Track stack level so that warnings show user code line numbers. Example: Modifying line 287 of test_persistent_dict.py so that the warning isn't captured by the test, we get this: ``` test_persistent_dict.py:287: CollisionWarning: pytools-test: key collision in cache at '/tmp/tmpq9p3i0b9' -- these are sufficiently unlikely that they're often indicative of a broken implementation of equality comparison pdict[key2] # user code ``` The old behavior was: ``` /home/matt/src/pytools/pytools/persistent_dict.py:466: UserWarning: pytools-test: key collision in cache at '/tmp/tmpuk8js9jw' -- these are sufficiently unlikely that they're often indicative of a broken implementation of equality comparison % (self.identifier, self.container_dir)) ```
-
- Sep 27, 2017
-
-
Andreas Klöckner authored
Fix value used for testing store_if_not_present() See merge request !6
-
Matt Wala authored
-
- Sep 26, 2017
-
-
Andreas Klöckner authored
Store if not present in persistent dicts See merge request !5
-
- Sep 25, 2017
-
-
Matt Wala authored
-
Matt Wala authored
-
Andreas Klöckner authored
-
Andreas Klöckner authored
PersistentDict cleanup; create WriteOncePersistentDict See merge request inducer/pytools!4
-
- Sep 24, 2017
- Sep 23, 2017
-
-
Matt Wala authored
-
Matt Wala authored
-
Matt Wala authored
-
Matt Wala authored
-
Matt Wala authored
-
Matt Wala authored
-
Matt Wala authored
-
Matt Wala authored
-
Matt Wala authored
Conflicts: test/test_persistent_dict.py
-
Matt Wala authored
Major changes to PersistentDict: * Uses a per-file lock instead of a per-container-dir lock. * Removed info files from store(). * Checks for cache collision on delete. * Added more tests. This change also implements WriteOncePersistentDict, which has a write-once policy. WriteOncePersistentDict uses a writer lock but allows for unlocked reads, which makes reads from disk faster. It also uses an in-memory LRU cache to speed up accesses.
-
Matt Wala authored
-
Andreas Klöckner authored
-
Matt Wala authored
-
- Sep 20, 2017
-
-
Matt Wala authored
-
- Sep 19, 2017
-
-
Matt Wala authored
the version read is for backwards compatibility.
-
Matt Wala authored
-
Matt Wala authored
This adds an optional in-memory LRU cache. To use the cache, you supply a *in_mem_cache_size* parameter to the PersistentDict. In order to properly support cache invalidation this also implements version tracking of files. This change is backwards compatible with existing persistent dict caches.
-
- Jul 20, 2017
-
-
Andreas Klöckner authored
-