Sujet : Re: filling area by color atack safety
De : tr.17687 (at) *nospam* z991.linuxsc.com (Tim Rentsch)
Groupes : comp.lang.cDate : 19. Mar 2024, 07:10:21
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <86wmpyn44y.fsf@linuxsc.com>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Malcolm McLean <
malcolm.arthur.mclean@gmail.com> writes:
On 18/03/2024 18:36, Tim Rentsch wrote:
>
>
It doesn't scale well. In particular worst case performance
scaling is worse than O(N) (as determined experimentally, not
theoretically).
>
Is that because the queue is being memmoved instead of using a
circular buffer when it gets towards the end?
I'm sure I don't know, and I'm astonished that you would ask.
It's your code after all. IMO it should simply be thrown out and
re-written; it pains me just to look at it, let alone to try to
understand or fix it.