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

[NFC] Refactor LocalGraph's core getSets API #6877

Merged
merged 6 commits into from
Aug 28, 2024
Merged

Conversation

kripken
Copy link
Member

@kripken kripken commented Aug 27, 2024

Before we just had a map that people would access with localGraph.getSetses[get],
while now it is a call localGraph.getSets(get), which more nicely hides the internal
implementation details.

Also rename getSetses => getSetsMap.

This will allow a later PR to optimize the internals of this API.

This is performance-neutral as far as I can measure. (We do replace a direct read
from a data structure with a call, but the call is in a header and should always get
inlined.)

@kripken kripken requested a review from tlively August 27, 2024 20:36
@kripken kripken merged commit 95ddd05 into WebAssembly:main Aug 28, 2024
13 checks passed
@kripken kripken deleted the lg.api branch August 28, 2024 16:13
@gkdn gkdn mentioned this pull request Aug 31, 2024
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