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
Add missing eltype methods and add type assertions to their getindex methods so that iteration over objects of these types has a chance of being typestable. Also 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