Closed paluh closed 4 years ago
To be honest we would need something like mutable queue
... So it is not as trivial to provide it as a mutable array :-)
I think this is probably a premature optimization regardless. This usually only has a handful of things in it max. It’s very unlikely to be a bottleneck.
I think this is probably a premature optimization regardless.
You are probably right. Thanks!
Currently
EventQueue
usesqueue :: Ref (Array i)
which is quite inefficient. Do you think that it can be safely replaced by something like "mutable array reference"?