Unexpected Performance Penalty in Java
Unexpected Performance Penalty in Java
I implemented a GapBuffer list in Java, and I can’t figure out why it’s getting such a performance penalty. Similar code written in C# behaves as expected: inserting to the middle of the list is much faster than C#’s implementation of List. But the Java version is behaving strangely.
Here is some benchmarking information:
Adding/removing 10,000,000 items @ the end of the dynamic array...…
View On WordPress









