JuliaArrays / JuliaArrays/ArraysOfArrays.jl
sizehint! based on size of backing array
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 46
- Forks
- 9
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 8
Description
It is sometimes that case I'm constructing a VectorOfArrays and I know what size the backing array will be as well as the number of arrays they will constitute. Would it be useful to add a:
function Base.sizehint!(A::VectorOfArrays{T,N}, n, s::Int) where {T,N}
Overload for this situation? Happy to put together a PR if there's agreement this is helpful.
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 locating the VectorOfArrays definition and existing sizehint! methods, then check how the backing array and number of arrays are represented. Confirm whether the proposed Base.sizehint!(A::VectorOfArrays{T,N}, n, s::Int) overload matches project conventions; done means supporting the stated construction case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100