streamich/thingies

perf: `LruMap`

Opened this issue · 0 comments

Maybe setting the default limit in LruMap to some integer would improve perf, as Infinity is probably stored as f64.

export class LruMap<K, V> extends Map<K, V> {
  constructor(public readonly limit: number = Infinity) {