summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Added installation section to Readme.HEADmasterJay Hutchinson2022-03-061-0/+7
|
* Version bump.v1.2.1Jay Hutchinson2022-03-061-1/+1
|
* Small optimization to popitem().Jay Hutchinson2022-03-061-3/+21
|
* Improved comments, removed whitespace, etc.Jay Hutchinson2022-03-062-24/+25
|
* Added __getstate__() and __setstate__().Jay Hutchinson2022-02-261-0/+32
|
* Moved from distutils to setuptools in setup.pyJay Hutchinson2019-03-131-2/+2
|
* Moved readme to Restructured Text.Jay Hutchinson2019-03-132-1/+1
|
* Version bump.v1.2.0Jay Hutchinson2019-03-121-1/+1
|
* Renamed the markdown formatted README.txt to README.mdJay Hutchinson2019-03-122-1/+1
|
* Updated documentation.Jay Hutchinson2019-03-121-2/+2
|
* Added optional callback to FunctionCacheManager.Jay Hutchinson2019-03-121-3/+3
|
* Merge pull request #28 from marc1n/masterjlhutch2019-02-011-0/+2
|\ | | | | Minimize memory consumption of _dlnode
| * Minimize memory consuption of _dlnodeMarcin RaczyƄski2019-02-011-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/masterjlhutch2018-06-141-2/+2
|\ | | | | Add optional callback funtionality to lrudecorator.
| * Add optional callback funtionality to lrudecorator.Benjamin Suntrup2018-06-131-2/+2
|/
* Bumped version to 1.1.0v1.1.0Jay Hutchinson2018-05-081-1/+1
|
* Added pop, popitem, and setdefault methods to lrucache class.Jay Hutchinson2018-05-061-0/+30
|
* Improved update() method of lrucache.Jay Hutchinson2018-05-061-6/+22
|
* Added len() method to WriteBackCacheManager.Jay Hutchinson2018-05-062-0/+11
|
* Simplified logic of a couple __getitem__ implementations.Jay Hutchinson2018-05-061-12/+4
|
* Cleaned up some of the comments and whitespace.Jay Hutchinson2018-05-061-47/+20
|
* Merge pull request #22 from btimby/masterjlhutch2017-07-191-0/+5
|\ | | | | Add `update()` method to simulate `dict`.
| * Undo whitespace changes.Ben Timby2017-07-171-0/+2
| |
| * Added update() method.Ben Timby2017-07-171-2/+5
|/
* Merge pull request #20 from pp-qq/patch-1jlhutch2017-03-221-3/+3
|\ | | | | refactor(lrucache): improve lrucache.get()
| * refactor(lrucache): improve lrucache.get()pp-qq2017-03-211-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.9Jay Hutchinson2015-03-242-3/+17
|
* Small change to README.Jay Hutchinson2015-03-181-1/+1
|
* Small change to README.Jay Hutchinson2015-03-181-1/+1
|
* Moved version to 1.0.8v1.0.8Jay Hutchinson2015-03-181-2/+2
|
* Added documentation for FunctionCacheManager.Jay Hutchinson2015-03-181-9/+39
|
* lrudecorator now updates the metadata to look more like the wrapped function.Jay Hutchinson2015-03-181-1/+3
| | | | Fixes #10
* Refactored lrudecorator using FunctionCacheManager.Jay Hutchinson2015-03-181-14/+2
|
* Added clear() and size() to FunctionCacheManager.Jay Hutchinson2015-03-181-0/+6
|
* Added FunctionCacheManager.Jay Hutchinson2015-03-171-2/+15
|
* Version 1.0.7v1.0.7Jay Hutchinson2015-03-172-2/+2
|
* Merge pull request #12 from iho/patch-1jlhutch2015-03-172-0/+3
|\ | | | | Make cache available from outer space.
| * Update README.txtIhor Gorobets2015-03-171-0/+2
| |
| * Make cache available from outer space.Ihor Gorobets2015-03-151-0/+1
|/
* Merge pull request #8 from jbowes/masterjlhutch2014-10-141-1/+1
|\ | | | | Trivial comment typo fix
| * Trivial comment typo fixJames Bowes2014-10-141-1/+1
|/
* Added kwargs support for lrudecorator and a few small fixes.v1.0.6Jay Hutchinson2014-06-123-9/+27
|
* Merge pull request #6 from dobesv/patch-1jlhutch2014-04-181-1/+4
|\ | | | | Add "get" method to match dict API.
| * Add "get" method to match dict API.dobesv2014-04-171-1/+4
|/
* Fixed bug in test.py. Thanks to Marc Abramowitz for finding & fixing it.Jay Hutchinson2012-07-041-1/+1
|
* Tweaked two lines in pylru.pyJay Hutchinson2011-07-251-2/+3
|
* Added code to test resizing a cache.Jay Hutchinson2011-07-251-0/+21
|
* Fixed the formatting of comments.Jay Hutchinson2011-07-252-103/+105
|
* A key can now be None.v1.0.5Jay Hutchinson2011-07-254-55/+50
|
* Bump version to 1.0.4v1.0.4Jay Hutchinson2011-07-232-4/+4
|