Skip to content

Conversation

devsnek
Copy link
Member

@devsnek devsnek commented Aug 26, 2025

we can just flip this flag at runtime

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines +102 to +103
enable_raw_imports.load(Ordering::Relaxed)
&& matches!(kind, "bytes" | "text")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: Probably will be optimized anyway, but just in case maybe flip these two so the load only happens occasionally?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the load is cheaper than the match :)

@devsnek devsnek merged commit b7e89f8 into main Aug 26, 2025
30 of 36 checks passed
@devsnek devsnek deleted the fix-prewarm-raw-imports branch August 26, 2025 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants