Liste des Groupes | Revenir à cl c |
Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:Yes, but I wrote it years ago. I can't remember why the value of 256 pixels was put in. But I do remember why the queue isn't very efficient - for the small images I expected to be processed, I judged that the added complexity of maintaining a circular queue wouldn't be worth it, given that I wanted the routine to be leaf. However if you can somehow trigger catastrophic big O behaviour, it won't be a surprise.
On 18/03/2024 18:36, Tim Rentsch wrote:I'm sure I don't know, and I'm astonished that you would ask.>>
>
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?
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.
Les messages affichés proviennent d'usenet.