-
Enhancement
-
Resolution: Fixed
-
P3
-
8
It was designed that way that ObservableArrays grow to match the requested size. So if you are doing many add operations, for example, add 3 floats per point for each point, you get number of point array resizes and data copying which is highly insufficient.
Although you can avoid this using ensureCapacity() methods there is still a big chance people would rely on past experience with ObservableList and never invoke it but rather blame ObservableArrays for being very inefficient.
I already saw code that was adding small chunks of information to ObservableArray without ensureCapacity() in the beginning. It looks like a common mistake and we should avoid this.
So I propose change growing of internal array of ObservableArray to match ObservableList strategy
Although you can avoid this using ensureCapacity() methods there is still a big chance people would rely on past experience with ObservableList and never invoke it but rather blame ObservableArrays for being very inefficient.
I already saw code that was adding small chunks of information to ObservableArray without ensureCapacity() in the beginning. It looks like a common mistake and we should avoid this.
So I propose change growing of internal array of ObservableArray to match ObservableList strategy