Skip to content

B11: Core algorithms #145

Backlog
Backlog

Description

@Claptar

Part of #149.

wave 3 · 0.17.13 · size S · starts after: B7 (both edit core/subset.py and core/query.py)

Goal. The transpose, split and query costs grow with the data, not with its square or its groups.

Owns: core/csr_build.py, core/subset.py (_SparseOutput), core/query.py

Approach:

  • Fixed per-bucket regions from out_indptr, as _ColumnBuckets has. The farm's 115k x 2.34M transpose took 46 minutes, 6.6 times the 6.7 GB store's for 3.2 times the bytes.
  • One per-major count array shared by targets with no major selection.
  • A numeric in list parsed once and matched with np.isin.

Findings

Ref Sev Finding Where
F229 M Streaming transpose's bucket appends grow as (nnz/chunk)^2 core/csr_build.py:197
F230 M split --axis var of CSR X holds n_groups x n_obs int64 counts, not a --chunk block core/subset.py:602
F231 L Numeric in list costs one full-column comparison per value core/query.py:398

Done when one PR on fix/b11 closes this, with a regression test against an oracle for every finding, and docs and changelog in the same PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions