diff options
author | Ori Bernstein <ori@eigenstate.org> | 2018-01-09 21:31:35 -0800 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2018-01-09 21:31:35 -0800 |
commit | 7e54db408cbfd206f16775070aef8fb0115587f7 (patch) | |
tree | 95fe49986647230ac60c6f9281c6d35543448b18 /mbld | |
parent | e761ce9ef2f89c9f87a4be72b88b837109630c2b (diff) | |
download | mc-7e54db408cbfd206f16775070aef8fb0115587f7.tar.gz |
The fastest regex is the one we don't run.
Diffstat (limited to 'mbld')
-rw-r--r-- | mbld/deps.myr | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mbld/deps.myr b/mbld/deps.myr index 4941557..d7767d8 100644 --- a/mbld/deps.myr +++ b/mbld/deps.myr @@ -525,6 +525,10 @@ const scrapedeps = {b : build#, mt, path l = [][:] for ln : bio.byline(f) + match std.strfind(ln, "use") + | `std.None: continue + | `std.Some _: /* ok */ + ;; match regex.exec(usepat, ln) | `std.None: | `std.Some uses: |