Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Performance improvements for PointVector, RayVector, SubObjectIterator (
#3369) Add type assertions to their getindex methods to improve type stability. Similarly ensure that the return value of `size` is recognized as Tuple{Int}. Silly microbenchmark, before: julia> v = PointVector{ZZRingElem}(matrix(ZZ, [1 2 3 ; ])); julia> @Btime prod(v) 1.217 μs (21 allocations: 336 bytes) After: julia> @Btime prod(v); 288.449 ns (5 allocations: 80 bytes)
- Loading branch information