JuliaArrays / JuliaArrays/StaticArrays.jl

Construction of big MArrays from arrays is slow

Open
#542 10 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.