Skip to content

Commit 0ff8e69

Browse files
committed
Merge branch '1.3.x'
2 parents 0dfbef0 + 1742aa8 commit 0ff8e69

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

CHANGES.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
Changelog
22
=========
33

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+
414
1.3.2 - 2024-10-17
515
------------------
616

src/calmjs/parse/unparsers/walker.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@
66

77
from __future__ import unicode_literals
88

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-
179
from calmjs.parse.asttypes import Node
1810
from calmjs.parse.ruletypes import Token
1911
from calmjs.parse.ruletypes import Structure
@@ -162,7 +154,6 @@ def __init__(
162154

163155
self.__optimized_definitions = self.optimize()
164156

165-
@lru_cache(maxsize=None)
166157
def optimize_definition(self, name, definition):
167158
rules = []
168159
for rule in definition:

0 commit comments

Comments
 (0)