hgrep icon indicating copy to clipboard operation
hgrep copied to clipboard

Improve throughput

Open thumphries opened this issue 8 years ago • 3 comments

Here's a bit of low-hanging fruit:

  • Do some time profiling in a large codebase like amazonka
  • Measure the impact of -O2
  • Parse and search batches in parallel, measure impact

thumphries avatar Oct 03 '17 11:10 thumphries

What's the best way to test this on a large base with hgrep? afaik, I always have to specify a Haskell file to hgrep (can't just glob easily, especially if there are non-Haskell source in the path).

justanotherdot avatar Oct 06 '17 03:10 justanotherdot

I'd recommend Gabriel Gonzales' bench tool (hackage name is just bench) and something like

cd amazonka

hgrep Instance /**/.hs

(Sorry for formatting, iOS keyboard seems to have no backtick)

On 6 Oct. 2017, at 2:36 pm, Ryan James Spencer [email protected] wrote:

What's the best way to test this on a large base with hgrep? afaik, I always have to specify a Haskell file to hgrep (can't just glob easily, especially if there are non-Haskell source in the path).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

thumphries avatar Oct 06 '17 03:10 thumphries

I did a simple profile run and 99% of the time in spent parsing modues. Concurrently parsing would therefore help a lot.

mitchellwrosen avatar Jan 09 '18 22:01 mitchellwrosen