avh4 / avh4/binwrap

Binwrap slows execution down

Open
#31 16 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
39
Forks
15
PR merge metrics
No merged PRs in 30d

Description

My editor is executing `elm-format` a lot. It looks like `binwrap` is slowing down execution. Same effect with `npm` only. I think we need more comparisons on other systems and if `binwrap` is the cause we should look into something like the elm "no-deps" installer, which is using `npm` but looks like it isn't slowing execution down on my machine.

https://github.com/elm/compiler/tree/master/installers/npm

### 450ms vs 80ms

```shell
which -a elm-format
/tmp/fnm-shell-3625665/bin/elm-format
/home/as/bin/elm-format


time /tmp/fnm-shell-3625665/bin/elm-format src/Main.elm --yes
Processing file src/Main.elm
0.48user 0.04system 0:00.45elapsed 114%CPU (0avgtext+0avgdata 52876maxresident)k
0inputs+0outputs (0major+9793minor)pagefaults 0swaps

time /home/as/bin/elm-format src/Main.elm --yes
Processing file src/Main.elm
0.07user 0.00system 0:00.08elapsed 89%CPU (0avgtext+0avgdata 14856maxresident)k
0inputs+0outputs (0major+1608minor)pagefaults 0swaps
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the reported elm-format timings for the binwrap path and the alternate installed path, starting with the shell commands and measurements in the issue. Compare behavior across systems and inspect the linked installers/npm directory, including the no-deps installer. Done means identifying whether binwrap causes the slowdown and documenting a concrete direction based on those comparisons.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
performance, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.