Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
Changelog
=========

1.3.3 - 2025-??-??
------------------

- Revert the usage of ``lru_cache`` as that isn't being hit as expected,
and that the benefits it brings is too negligible to bring back given
the extremely limited cache hits. [
`#45 <https://github.com/calmjs/calmjs.parse/issues/45>`_
`#46 <https://github.com/calmjs/calmjs.parse/issues/46>`_
]

1.3.2 - 2024-10-17
------------------

Expand Down
9 changes: 0 additions & 9 deletions src/calmjs/parse/unparsers/walker.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@

from __future__ import unicode_literals

try:
from functools import lru_cache
except ImportError: # pragma: no cover
def lru_cache(*a, **kw):
def wrapper(f):
return f
return wrapper

from calmjs.parse.asttypes import Node
from calmjs.parse.ruletypes import Token
from calmjs.parse.ruletypes import Structure
Expand Down Expand Up @@ -162,7 +154,6 @@ def __init__(

self.__optimized_definitions = self.optimize()

@lru_cache(maxsize=None)
def optimize_definition(self, name, definition):
rules = []
for rule in definition:
Expand Down