JuliaArrays / JuliaArrays/StaticArrays.jl
Construction of big MArrays from arrays is slow
Open
Nobody has claimed this yet.
compile-time-performance
documentation
- Dominant language
- Julia
- Stars
- 844
- Forks
- 159
- Avg merge
- 3d 21h
- Merged PRs (30d)
- 3
Description
Quick timing:
@time MVector{5_000}(rand(5000))
745.251386 seconds (6.46 M allocations: 310.818 MiB, 0.02% gc time)
That is really hurting. From the README and the docs I suspected using MArrays is fine for big arrays unlike SArrays.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported timing for MVector{5_000}(rand(5000)) and read the README and documentation claims about constructing large MArrays. Trace the MVector construction entry point to identify why this input is slow; done means the same construction no longer exhibits the reported extreme delay.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- performance
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100