Faster nimgrep (#6983)

* compile nimgrep with -d:release
* nimgrep: only parse pattern once at startup
This commit is contained in:
Mathias Stearn 2018-01-03 06:42:39 -05:00 • committed by Andreas Rumpf
commit 23c77ffa3a
2 changed files with 20 additions and 28 deletions

View file

@ -260,7 +260,7 @@ proc buildTools(latest: bool) =
" nimsuggest/nimsuggest.nim"
let nimgrepExe = "bin/nimgrep".exe
nimexec "c -o:" & nimgrepExe & " tools/nimgrep.nim"
nimexec "c -d:release -o:" & nimgrepExe & " tools/nimgrep.nim"
when defined(windows): buildVccTool()
#nimexec "c -o:" & ("bin/nimresolve".exe) & " tools/nimresolve.nim"