performance tracking issue

Open
#201 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
julia
Domain
performance

Research direction

This is a meta-issue rather than a single implementation task. Start by choosing one unchecked item and read its linked issues, especially #164, #141, #183, or #220; for benchmarking, review the referenced formulaic suite. Done requires narrowing one performance problem to a concrete change with measurements and tests.

Written by the indexing model from the issue text.

Description

This is a meta-issue to keep track of major performance problems (broadly construed) that may require API changes and hence are blocking a 1.0 release.

  • type parameters on all term types and tuple as multi-term container make the compiler work harder than necessary (#164, #141)
  • relatedly, a new anonymous function is created for every function term (#164), fixed by #183
  • also related: #220 (probably due to specializing on data column names in NamedTuples)
  • First-class support for sparse model matrix (dense always created first)
  • Lots of allocations in modelcols which aren't really necessary (can be done in-place)
  • First-class support for streaming data, for schema extraction and model matrix row-wise methods (would be mostly fixed by in-place modelcols)
  • Lack of systematic performance benchmarking (https://github.com/matthewwardrop/formulaic suite might be a good place to start)
Dominant language
Julia
Stars
252
Forks
36
Avg merge
3h 14m
Merged PRs (30d)
4

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from JuliaStats/StatsModels.jl

All issues in JuliaStats/StatsModels.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.