Skip to content
Snippets Groups Projects
  1. Jul 30, 2020
    • Kaushik Kulkarni's avatar
      Address review comments: · e1814a33
      Kaushik Kulkarni authored
      - adds link for Kahn's algorithm
      - replaces compute_topological_order by compute_topological_order_v2
      - introduce class HeapEntry
      e1814a33
  2. Jul 23, 2020
  3. Jul 22, 2020
  4. Jul 20, 2020
  5. Jun 10, 2020
  6. May 13, 2020
  7. May 12, 2020
  8. Jan 12, 2020
  9. Nov 18, 2019
  10. May 01, 2019
  11. Apr 24, 2019
  12. Jan 21, 2019
  13. Mar 27, 2018
  14. Mar 16, 2018
  15. Mar 11, 2018
  16. Feb 27, 2018
  17. Dec 06, 2017
  18. Oct 05, 2017
    • Matt Wala's avatar
      Improve PersistentDict warnings. · b1be1516
      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))
      ```
      b1be1516
  19. Sep 27, 2017
  20. Sep 25, 2017
  21. Sep 24, 2017
  22. Sep 23, 2017
  23. Sep 20, 2017
  24. Sep 19, 2017
    • Matt Wala's avatar
      Add an LRU cache to PersistentDict. · 6f39c2d6
      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.
      6f39c2d6
  25. Jun 03, 2017
Loading