Thanks Felix. What's your opinion on the 2 proposed patches ? @Vladimir, @Milamber same question ? Thanks
On Sat, Apr 2, 2016 at 12:29 PM, Felix Schumacher < felix.schumac...@internetallee.de> wrote: > Am 01.04.2016 um 21:34 schrieb Philippe Mouawad: > >> Hi Vladimir, >> For now I don't see how to "remove oldest sample results" efficiently >> without a big effort, do you have some ideas ? >> > As Vladimir noted ArrayList is not well suited for removal of elements > from the front. There are however constructs, that can do that efficiently. > In commons collections one example would be the CircularFifoBuffer. > > This doesn't help us with TreeModel, though. > > Regards, > Felix > > Thanks >> >> >> >> On Fri, Apr 1, 2016 at 9:30 PM, Vladimir Sitnikov < >> sitnikov.vladi...@gmail.com> wrote: >> >> If "remove oldest sample results" can be performed efficiently, then I >>> would like to do that. >>> If "remove oldest sample results" requires to remove the first item >>> out of arraylist, then I would rather prefer "stop capturing more >>> results" approach. >>> Vladimir >>> >>> >> >> > -- Cordialement. Philippe Mouawad.