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

Very slow with dynamic strings #47

Open
Paril opened this issue Jan 11, 2025 · 0 comments
Open

Very slow with dynamic strings #47

Paril opened this issue Jan 11, 2025 · 0 comments

Comments

@Paril
Copy link

Paril commented Jan 11, 2025

tl;dr I'm attempting to use Palanteer to add instrumentation to one of our scripting engines - unfortunately, plBeginDyn and plEndDyn have huge overhead, and the hotspot is in the string memory pooling.

Technically, though, all of the strings we're passing are all static (as in their memory won't be freed until we're done with Palanteer), it's just that plBegin/plEnd don't accept such strings since it requires hashes to be computed at compile time for some reason.

Is there any way to just compute the hashes at run time, which would be infinitely faster than dynamically allocating strings?

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

No branches or pull requests

1 participant