Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added installation section to Readme.HEADmaster | Jay Hutchinson | 2022-03-06 | 1 | -0/+7 |
| | |||||
* | Version bump.v1.2.1 | Jay Hutchinson | 2022-03-06 | 1 | -1/+1 |
| | |||||
* | Small optimization to popitem(). | Jay Hutchinson | 2022-03-06 | 1 | -3/+21 |
| | |||||
* | Improved comments, removed whitespace, etc. | Jay Hutchinson | 2022-03-06 | 2 | -24/+25 |
| | |||||
* | Added __getstate__() and __setstate__(). | Jay Hutchinson | 2022-02-26 | 1 | -0/+32 |
| | |||||
* | Moved from distutils to setuptools in setup.py | Jay Hutchinson | 2019-03-13 | 1 | -2/+2 |
| | |||||
* | Moved readme to Restructured Text. | Jay Hutchinson | 2019-03-13 | 2 | -1/+1 |
| | |||||
* | Version bump.v1.2.0 | Jay Hutchinson | 2019-03-12 | 1 | -1/+1 |
| | |||||
* | Renamed the markdown formatted README.txt to README.md | Jay Hutchinson | 2019-03-12 | 2 | -1/+1 |
| | |||||
* | Updated documentation. | Jay Hutchinson | 2019-03-12 | 1 | -2/+2 |
| | |||||
* | Added optional callback to FunctionCacheManager. | Jay Hutchinson | 2019-03-12 | 1 | -3/+3 |
| | |||||
* | Merge pull request #28 from marc1n/master | jlhutch | 2019-02-01 | 1 | -0/+2 |
|\ | | | | | Minimize memory consumption of _dlnode | ||||
| * | Minimize memory consuption of _dlnode | Marcin RaczyĆski | 2019-02-01 | 1 | -0/+2 |
|/ | | | | | | | | | | | | | | | | | | | | | Added `__slots__` do `_dlnode` class (which saves 88 bytes per one object). Before this change, each _dlnode () object was consuming 168 bytes: ```python from sys import getsizeof d = _dlnode() d.next = d.prev = d.key = d.value = None assert getsizeof(d) + getsizeof(d.__dict__) == 168 ``` After this change each _dlnode () object is consuming 80 bytes: ```python from sys import getsizeof d = _dlnode() d.next = d.prev = d.key = d.value = None assert getsizeof(d) == 80 ``` | ||||
* | Merge pull request #26 from bpsuntrup/master | jlhutch | 2018-06-14 | 1 | -2/+2 |
|\ | | | | | Add optional callback funtionality to lrudecorator. | ||||
| * | Add optional callback funtionality to lrudecorator. | Benjamin Suntrup | 2018-06-13 | 1 | -2/+2 |
|/ | |||||
* | Bumped version to 1.1.0v1.1.0 | Jay Hutchinson | 2018-05-08 | 1 | -1/+1 |
| | |||||
* | Added pop, popitem, and setdefault methods to lrucache class. | Jay Hutchinson | 2018-05-06 | 1 | -0/+30 |
| | |||||
* | Improved update() method of lrucache. | Jay Hutchinson | 2018-05-06 | 1 | -6/+22 |
| | |||||
* | Added len() method to WriteBackCacheManager. | Jay Hutchinson | 2018-05-06 | 2 | -0/+11 |
| | |||||
* | Simplified logic of a couple __getitem__ implementations. | Jay Hutchinson | 2018-05-06 | 1 | -12/+4 |
| | |||||
* | Cleaned up some of the comments and whitespace. | Jay Hutchinson | 2018-05-06 | 1 | -47/+20 |
| | |||||
* | Merge pull request #22 from btimby/master | jlhutch | 2017-07-19 | 1 | -0/+5 |
|\ | | | | | Add `update()` method to simulate `dict`. | ||||
| * | Undo whitespace changes. | Ben Timby | 2017-07-17 | 1 | -0/+2 |
| | | |||||
| * | Added update() method. | Ben Timby | 2017-07-17 | 1 | -2/+5 |
|/ | |||||
* | Merge pull request #20 from pp-qq/patch-1 | jlhutch | 2017-03-22 | 1 | -3/+3 |
|\ | | | | | refactor(lrucache): improve lrucache.get() | ||||
| * | refactor(lrucache): improve lrucache.get() | pp-qq | 2017-03-21 | 1 | -3/+3 |
|/ | | | | | | | | ```sh >>> timeit.repeat('cache.old_get(12138)', 'import pylru; cache = pylru.lrucache(3)', repeat=7) [1.6048369407653809, 1.5690279006958008, 1.5801060199737549, 1.8120369911193848, 1.5470390319824219, 1.592298984527588, 1.5710852146148682] >>> timeit.repeat('cache.get(12138)', 'import pylru; cache = pylru.lrucache(3)', repeat=7) [0.24112796783447266, 0.23629999160766602, 0.23735690116882324, 0.23392081260681152, 0.23485207557678223, 0.23575401306152344, 0.24010705947875977] ``` | ||||
* | Fixes #13, a bug in lrudecorator.v1.0.9 | Jay Hutchinson | 2015-03-24 | 2 | -3/+17 |
| | |||||
* | Small change to README. | Jay Hutchinson | 2015-03-18 | 1 | -1/+1 |
| | |||||
* | Small change to README. | Jay Hutchinson | 2015-03-18 | 1 | -1/+1 |
| | |||||
* | Moved version to 1.0.8v1.0.8 | Jay Hutchinson | 2015-03-18 | 1 | -2/+2 |
| | |||||
* | Added documentation for FunctionCacheManager. | Jay Hutchinson | 2015-03-18 | 1 | -9/+39 |
| | |||||
* | lrudecorator now updates the metadata to look more like the wrapped function. | Jay Hutchinson | 2015-03-18 | 1 | -1/+3 |
| | | | | Fixes #10 | ||||
* | Refactored lrudecorator using FunctionCacheManager. | Jay Hutchinson | 2015-03-18 | 1 | -14/+2 |
| | |||||
* | Added clear() and size() to FunctionCacheManager. | Jay Hutchinson | 2015-03-18 | 1 | -0/+6 |
| | |||||
* | Added FunctionCacheManager. | Jay Hutchinson | 2015-03-17 | 1 | -2/+15 |
| | |||||
* | Version 1.0.7v1.0.7 | Jay Hutchinson | 2015-03-17 | 2 | -2/+2 |
| | |||||
* | Merge pull request #12 from iho/patch-1 | jlhutch | 2015-03-17 | 2 | -0/+3 |
|\ | | | | | Make cache available from outer space. | ||||
| * | Update README.txt | Ihor Gorobets | 2015-03-17 | 1 | -0/+2 |
| | | |||||
| * | Make cache available from outer space. | Ihor Gorobets | 2015-03-15 | 1 | -0/+1 |
|/ | |||||
* | Merge pull request #8 from jbowes/master | jlhutch | 2014-10-14 | 1 | -1/+1 |
|\ | | | | | Trivial comment typo fix | ||||
| * | Trivial comment typo fix | James Bowes | 2014-10-14 | 1 | -1/+1 |
|/ | |||||
* | Added kwargs support for lrudecorator and a few small fixes.v1.0.6 | Jay Hutchinson | 2014-06-12 | 3 | -9/+27 |
| | |||||
* | Merge pull request #6 from dobesv/patch-1 | jlhutch | 2014-04-18 | 1 | -1/+4 |
|\ | | | | | Add "get" method to match dict API. | ||||
| * | Add "get" method to match dict API. | dobesv | 2014-04-17 | 1 | -1/+4 |
|/ | |||||
* | Fixed bug in test.py. Thanks to Marc Abramowitz for finding & fixing it. | Jay Hutchinson | 2012-07-04 | 1 | -1/+1 |
| | |||||
* | Tweaked two lines in pylru.py | Jay Hutchinson | 2011-07-25 | 1 | -2/+3 |
| | |||||
* | Added code to test resizing a cache. | Jay Hutchinson | 2011-07-25 | 1 | -0/+21 |
| | |||||
* | Fixed the formatting of comments. | Jay Hutchinson | 2011-07-25 | 2 | -103/+105 |
| | |||||
* | A key can now be None.v1.0.5 | Jay Hutchinson | 2011-07-25 | 4 | -55/+50 |
| | |||||
* | Bump version to 1.0.4v1.0.4 | Jay Hutchinson | 2011-07-23 | 2 | -4/+4 |
| |