-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade govaluate, avoid generating structs.
Now that govaluate has been modified to recursively query Parameters, we can return a lazy tree of AnyParameters instead of dynamically generating structs. This saves quite a bit of code, CPU time, and memory allocations. Old struct generation BenchmarkQueryGovaluateSimple-4 2069 ns/op 992 B/op 25 allocs/op BenchmarkQueryGovaluateComplex-4 6212 ns/op 2544 B/op 75 allocs/op New lazy json parsing BenchmarkQueryGovaluateSimple-4 1404 ns/op 320 B/op 18 allocs/op BenchmarkQueryGovaluateComplex-4 2617 ns/op 512 B/op 30 allocs/op Refs #586
- Loading branch information
Showing
4 changed files
with
57 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.