File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
src/calmjs/parse/unparsers Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
1
Changelog
2
2
=========
3
3
4
+ 1.3.3 - 2025-01-29
5
+ ------------------
6
+
7
+ - Revert the usage of ``lru_cache `` as that isn't being hit as expected,
8
+ and that the benefits it brings is too negligible to bring back given
9
+ the extremely limited cache hits. [
10
+ `#45 <https://github.com/calmjs/calmjs.parse/issues/45 >`_
11
+ `#46 <https://github.com/calmjs/calmjs.parse/issues/46 >`_
12
+ ]
13
+
4
14
1.3.2 - 2024-10-17
5
15
------------------
6
16
Original file line number Diff line number Diff line change 6
6
7
7
from __future__ import unicode_literals
8
8
9
- try :
10
- from functools import lru_cache
11
- except ImportError : # pragma: no cover
12
- def lru_cache (* a , ** kw ):
13
- def wrapper (f ):
14
- return f
15
- return wrapper
16
-
17
9
from calmjs .parse .asttypes import Node
18
10
from calmjs .parse .ruletypes import Token
19
11
from calmjs .parse .ruletypes import Structure
@@ -162,7 +154,6 @@ def __init__(
162
154
163
155
self .__optimized_definitions = self .optimize ()
164
156
165
- @lru_cache (maxsize = None )
166
157
def optimize_definition (self , name , definition ):
167
158
rules = []
168
159
for rule in definition :
You can’t perform that action at this time.
0 commit comments