Skip to content

Conversation

@benbrandt
Copy link
Contributor

Since there aren't mutable methods on CoreBPE, you can remove the
indirections and locks and just return a static reference.

Since there aren't mutable methods on CoreBPE, you can remove the
indirections and locks and just return a static reference.
@benbrandt benbrandt force-pushed the improve-singleton-performance branch from f1f3d7b to 048f3c3 Compare May 10, 2025 04:49
@benbrandt
Copy link
Contributor Author

Pushed lint fixes

@benbrandt
Copy link
Contributor Author

@zurawiki really sorry, should actually be fixed now

@zurawiki
Copy link
Owner

Thanks for adding this fix @benbrandt. The Arc was a temporary hack to help people get started quickly with the crate. I'm glad to see us streamline this code!

@zurawiki zurawiki merged commit f597108 into zurawiki:main May 19, 2025
8 checks passed
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