-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[wasm] Optimize bundled_resources key creation, hashing, and comparison #101460
Conversation
Tagging subscribers to 'arch-wasm': @lewing |
9b0064b
to
0c58523
Compare
char *key; | ||
if (dn_simdhash_ptr_ptr_try_get_value (bundled_resource_key_lookup_table, (void *)value->id, (void **)&key)) { | ||
dn_simdhash_ptr_ptr_try_remove (bundled_resource_key_lookup_table, (void *)value->id); | ||
g_free (key); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok, this is what is cleaning up the key.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
consider moving g_memrchr
to eglib (remember to also update eglib-remap.h
)
…on (dotnet#101460) Optimize bundled_resources key creation and hashing Migrate bundled_resources to simdhash
In startup profiles we spend a lot of time in
bundled_resources_resource_id_equal
and..._id_hash
.