JuliaData / JuliaData/PooledArrays.jl

implement compactpool! and compactpool functions

Open
#58 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
49
Forks
11
PR merge metrics
No merged PRs in 30d

Description

Currently there is no API to compact pool of PooledArray. This can be needed in two cases:

  • you removed many values from a PooledArray and want to have a smaller pool
  • you subsetted a PooledArray thus dropping many unique values

This should be implemented after #56 is merged.

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 reviewing issue #56 and the current PooledArray implementation, since this work is explicitly dependent on it. Define the compactpool! and compactpool APIs for removing unused pooled values after deletions or subsetting, and consider the work done when the pool is reduced without changing the array's values.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.