9 comments (9 comments)0 reactions (0 reactions)0 assignees (0 assignees)Haskell1,329 stars (1,329 stars)148 forks (148 forks)batch import
help wanted
Description
Currently formatting 400 files takes ~2 seconds on a 2015 MBP. Can that time be cut in half?
Contributor guide
- Tech stack
- None
- Domain
- cli
- Issue type
- performance
- DifficultyEstimated implementation difficulty for a new contributor, from 1 for very small changes to 5 for expert-level work.
- 3
- Estimated timeA rough time range for an experienced contributor to investigate, implement, test, and prepare a pull request.
- 1-2 days
- Activity statusHow available the issue appears right now: fresh, active, stale, blocked, or waiting on maintainer input.
- stale
- ClarityHow clearly the issue explains the expected change, acceptance criteria, and next step.
- mostly clear
- Prerequisites
- Haskellprofilingelm format codebase
- Newbie friendlinessA 1-100 score estimating how approachable this issue is for first-time contributors.
- 30
- Research direction
- The issue asks to reduce formatting time from ~2 seconds for 400 files to half that. No specific bottlenecks are identified. To start, profile the current code using GHC's profiling tools (e.g., run with +RTS p) to identify slow functions. Look at the main formatting loop in src/Format.elm or similar. Check if there are any redundant traversals or inefficient data structures. Consider parallelizing independent file formatting. The issue has 9 comments; review them for any prior investigation or suggestions.