Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.14] Use raise_without_backtrace in Map, Set #132

Open
wants to merge 1 commit into
base: v0.14
Choose a base branch
from

Conversation

greedy
Copy link
Contributor

@greedy greedy commented Jun 8, 2022

Backport of #131 to 0.14

Map and Set use some exceptions for control flow that were being raised
with plain raise. This meant that stack traces were being created for
these exception that couldn't escape their outer function causing an
unfortunate performance loss. Raising these exceptions with
raise_without_backtrace avoids the performance problem.

Signed-off-by: Geoff Reedy [email protected]

Map and Set use some exceptions for control flow that were being raised
with plain `raise`. This meant that stack traces were being created for
these exception that couldn't escape their outer function causing an
unfortunate performance loss. Raising these exceptions with
`raise_without_backtrace` avoids the performance problem.

Signed-off-by: Geoff Reedy <[email protected]>
@github-iron github-iron added the forwarded-to-js-devs This report has been forwarded to Jane Street's internal review system. label Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forwarded-to-js-devs This report has been forwarded to Jane Street's internal review system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants