Repository navigation
Imporove loads with large item counts - #11
Merged
airbreather merged 1 commit intoOct 22, 2026
Merged
Conversation
airbreather
added a commit
that referenced
this pull request
Oct 22, 2026
- #10 - fix an incorrect merge conflict resolution that was done in #3 - #11 - fix a performance issue seen when receiving MANY items at once (e.g., at the initial handshake step for a game that's been going on for a while). - Routine package version updates. Changes related to those version updates: - Add a `@throws` bit that had been missed by an earlier version of the `jsdoc/require-description` ESLint rule. - Targeted fix for `dts-bundle-generator` neither accepting TypeScript v7 nor including an upper bound in the version range in its own `package.json`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR makes a small change to improve performance while handling the
receivedItemspacket.While testing this with a slot with ~83K recieved items, this what I found.

Over 400ms of load time was spent on this one line shifting the array.
After the change, the time for the whole function call dropped to below 6ms

Tested by using a web-app to connect to a locally hosted server, with a slot with over 83K items while running Chrome's profiler.