Alrecenk / JSTimelineSync

A quick and dirty prototype for testing generalized rollback networking.
MIT License
5 stars 1 forks source link

cache event hash set #36

Closed Alrecenk closed 2 years ago

Alrecenk commented 2 years ago

Caches the map of event hashes to speed up the de-duplication check in Timeline.applyUpdate. Also removes an unnecessary hash compute in Timeline.getUpdateFor. This tiny change results in ~2-3x speedup in synchronization in the perf test.