Skip to content

refactor: Add ability to hydrate outside batch() - #186

Open
Dadadah wants to merge 1 commit into
mainfrom
refactor/hydrateoutsidebatch
Open

refactor: Add ability to hydrate outside batch()#186
Dadadah wants to merge 1 commit into
mainfrom
refactor/hydrateoutsidebatch

Conversation

@Dadadah

@Dadadah Dadadah commented Aug 10, 2026

Copy link
Copy Markdown
Member

By hydrating outside of the batch() solidjs call we save approximately 30% on large server list syncs.

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
@Dadadah
Dadadah force-pushed the refactor/hydrateoutsidebatch branch from 2ac7bd0 to 0d509d3 Compare August 10, 2026 02:23
@Dadadah
Dadadah requested a review from a team August 10, 2026 02:24

@amycatgirl amycatgirl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

* Hydrate a new user if it is not in the collection yet. This function does
* not add the user to the store, make sure you call
* UserCollection.addHydratedUser afterwards. This function is particularly
* useful when adding many users asynchronously. See Server.syncMembers for

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: JSDoc supports linking to the file the object/class and property is in using the @link{} tag

https://jsdoc.app/tags-inline-link
https://jsdoc.app/about-namepaths

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice I didn't know that. I'll update this then merge it later today.

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