Skip to content

Commit

Permalink
CSL3-1858 Expand Loop Emulation to 16K to support large XML files (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
Iapetus999 authored Oct 18, 2023
1 parent 6bc155f commit 43eb241
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions larky/src/main/resources/stdlib/larky.star
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def _to_dict(s):
return {key: getattr(s, key) for key in attributes}


# emulates while loop but will iterate *only* for 4096 steps.
WHILE_LOOP_EMULATION_ITERATION = 4096
# emulates while loop but will iterate *only* for 16384 steps.
WHILE_LOOP_EMULATION_ITERATION = 16384

_SENTINEL = _sentinel()

Expand Down
2 changes: 1 addition & 1 deletion larky/src/main/resources/stdlib/re.star
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ load("@stdlib//enum", "enum")
load("@stdlib//re2j", _re2j="re2j")


_WHILE_LOOP_EMULATION_ITERATION = 1000
_WHILE_LOOP_EMULATION_ITERATION = 16384

__ = -1 # Alias for the invalid class
RegexFlags = enum.enumify_iterable(iterable=[
Expand Down

0 comments on commit 43eb241

Please sign in to comment.