Skip to content

Adjust visibility of fn new_from_context - #46

Closed
ost-ing wants to merge 1 commit into
MabezDev:masterfrom
ost-ing:new-from-context-visibility
Closed

ost-ing wants to merge 1 commit into
MabezDev:masterfrom
ost-ing:new-from-context-visibility

Conversation

@ost-ing

@ost-ing ost-ing commented Feb 24, 2025

Copy link
Copy Markdown
Contributor

This PR adjusts the visibility of the new_from_context function to allow it to be called outside of the crate.

@ost-ing

ost-ing commented Mar 26, 2025

Copy link
Copy Markdown
Contributor Author

@MabezDev I understand that this probably isnt the most ideal API, but I think for high-speed scenarios it could be handy to short-circuit unnecessary overhead. Maybe these functions could be hidden behind a feature flag, for the best of both worlds?

@MabezDev

MabezDev commented May 1, 2026

Copy link
Copy Markdown
Owner

Once upon a time, this was public - but I'm not happy with how easy it is to misuse it. I'm open on ideas on how to improve it without affecting performance.

@MabezDev

MabezDev commented May 1, 2026

Copy link
Copy Markdown
Owner

What do you think about #59? Could you test in your app for performance?

@bugadani bugadani closed this Oct 23, 2026
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.

3 participants