mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
Fixes #836 by using a Map instead of an array. The Map maps the values to their indices rather than the reverse, making finding the index constant-time rather than linear, and so building the full map linear rather than quadratic. Flipping it to build the final array is also linear. |
||
|---|---|---|
| .. | ||
| schemas | ||
| savegame_compressor.js | ||
| savegame_interface_registry.js | ||
| savegame_interface.js | ||
| savegame_manager.js | ||
| savegame_serializer.js | ||
| savegame_typedefs.js | ||
| savegame.js | ||
| serialization_data_types.js | ||
| serialization.js | ||
| serializer_internal.js | ||