[Mono-list] Array.CopyTo - Mono (Ubuntu) vs .Net (Windows)
Aaron Oneal
aaron.oneal at spicypixel.com
Sat Aug 3 17:41:06 UTC 2013
Some sample code showing how you are calling it would help for diagnosing, but I can tell you that implementation is only marginally better, and not at all if you touch Capacity. If you use Put, you still do a copy from another buffer which defeats the purpose.
You need to manage head and tail yourself and pass the fixed buffer, head, and length values directly to the API that will be filling it if you can.
What does the source API look like that fills the buffer? Is there a Read call of some kind?
On Aug 3, 2013, at 5:37 AM, const86 <powerdeth at narod.ru> wrote:
> Not. Don't work circular buffer. The result is the same.
>
> The first few seconds of running well. Then the buffer is running slower and
> slower.
>
> Who knows what may happen because of the degradation of the buffer?
>
> Using this library here: http://circularbuffer.codeplex.com/
More information about the Mono-list
mailing list