-
-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[perf fix] Add manual GC points to 'if' and 'case'
This resolves issue #2123. The 'filter' loop would evaluate expressions, and allocate, without every hitting a GC point. To break out of a loop or recursion, you will need 'if' or 'case'. So I believe this should work everywhere, just as it does the test/bug-2123.* repro. I'm not quite sure why the bug depended on get() NOT having a default arg though. Could look into that more.
- Loading branch information
Andy C
committed
Nov 17, 2024
1 parent
b52392e
commit 0634190
Showing
3 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters