Commit 18953b2
authored
Calculate litMatcher.want at codegen time (#95)
parseLitMatcher() was calling strconv.AppendQuote() each time, which my
profiler discovered was costing a measurably large amount of runtime
during parsing within dhall-golang.
This commit calculates litMatcher.want at codegen time so that we don't
have to compute the `want` value each time we parse with the litMatcher.1 parent 7ee56e1 commit 18953b2
File tree
39 files changed
+480
-266
lines changed- bootstrap/cmd/bootstrap-pigeon
- builder
- examples
- calculator
- indentation
- json
- optimized-grammar
- optimized
- test
- alternate_entrypoint
- andnot
- emptystate
- errorpos
- global_store
- goto_state
- goto
- issue_18
- issue_1
- issue_65
- optimized-grammar
- optimized
- issue_70b
- issue_70
- optimized-grammar
- optimized
- issue_80
- labeled_failures
- linear
- max_expr_cnt
- predicates
- runeerror
- stateclone
- statereadonly
- staterestore
- optimized
- standard
- state
- thrownrecover
39 files changed
+480
-266
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
425 | 430 | | |
426 | 431 | | |
427 | 432 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| 360 | + | |
360 | 361 | | |
361 | 362 | | |
362 | 363 | | |
| |||
1245 | 1246 | | |
1246 | 1247 | | |
1247 | 1248 | | |
1248 | | - | |
1249 | | - | |
1250 | | - | |
1251 | | - | |
1252 | | - | |
1253 | 1249 | | |
1254 | 1250 | | |
1255 | 1251 | | |
1256 | 1252 | | |
1257 | 1253 | | |
1258 | 1254 | | |
1259 | 1255 | | |
1260 | | - | |
| 1256 | + | |
1261 | 1257 | | |
1262 | 1258 | | |
1263 | 1259 | | |
1264 | 1260 | | |
1265 | 1261 | | |
1266 | | - | |
| 1262 | + | |
1267 | 1263 | | |
1268 | 1264 | | |
1269 | 1265 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments