Closed easye closed 1 year ago
*** Use of generics doesn't seem to help implementation BasicVectorBuffer
One has to "record" the specialization via adding the class to the constructor anyways.
The parameterized type can't be used as discriminator type for different functions by arguments, as type erasure makes things an Object anyways.
Superseded by https://github.com/armedbear/abcl/pull/624
(INCOMPLETE) Start of exploration on simplying and improving support for sequences, vectors, and arrays by using generics and functions shipped as part of openjdk8.
Goals:
1) Simplify class structure with parametertized types
2) Use openjdk8 methods like Arrays.fill(), sort() et. al.
3) Reduce memory use for "oversized" buffers
4) Optimize speed of basic operations
TODO need some benchmarks to test before/after