JuliaArrays / JuliaArrays/ArraysOfArrays.jl

sizehint! based on size of backing array

Open
#37 1 comment 0 reactions 0 assignees View on GitHub

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.