Use WeakMap for WI cache
This commit is contained in:
parent
6c9f3a868d
commit
b4559d3fd8
|
@ -334,9 +334,9 @@ class WorldInfoBuffer {
|
|||
|
||||
class WorldInfoTimedEvents {
|
||||
/**
|
||||
* @type {Map<WIScanEntry, number>} Cache for entry hashes
|
||||
* @type {WeakMap<WIScanEntry, number>} Cache for entry hashes
|
||||
*/
|
||||
static #entryHashCache = new Map();
|
||||
static #entryHashCache = new WeakMap();
|
||||
|
||||
/**
|
||||
* @type {string[]} Array of chat messages
|
||||
|
|
Loading…
Reference in New Issue