Files
Paradise/code/controllers
LemonInTheDark 963516769c Changes how the garbage subsystem queue stores and processes info (#19608)
The way """we""" currently do it, each time you want to walk the queue
you're forced to make a copy in memory of the whole thing

There's no real reason to want this, so it seems best to just avoid it
entirely. It creates a TON of usage for no reason, and also risks a lot
of overtime since you can't really batch a list copy like that.

So instead let's just iterate over the length of the queue, constant
rather then O(N) time.

Similarly, rather then using an associated list in the form queue[ref] = gc time,
we could store queue entries in what amounts to a tuple.

This means no associated list stuff, so the operation of queuing becomes
cheaper, and pulling gc time similarly goes from O(log n) to constant time

I stole this work from myself and mso, tg pr 55595
I'm pring it here because I keep seeing affected complain about the
garbage subsystem and he refuses to do it himself. No I don't have an
ego problem I swear
2022-11-05 11:19:27 +00:00
..
2022-08-14 14:55:31 +01:00
2022-08-14 14:55:31 +01:00
2022-09-02 13:50:53 +01:00
2022-08-14 14:55:31 +01:00
2022-08-14 14:55:31 +01:00
2021-05-23 17:26:17 +01:00