mirror of
https://github.com/prometheus/prometheus
synced 2024-12-26 08:33:06 +00:00
64b0ade171
This swaps github.com/kivikakk/golex for github.com/cznic/golex. The old lexer would have taken 3.5 years to load a set of 5000 test rules (quadratic time complexity for input length), whereas this one takes only 32ms. Furthermore, since the new lexer is embedded differently, this gets rid of the global parser variables and makes the rule loader fully reentrant without a lock. |
||
---|---|---|
.. | ||
ast | ||
fixtures | ||
alerting.go | ||
helpers_test.go | ||
helpers.go | ||
lexer.l | ||
lexer.l.go | ||
load.go | ||
Makefile | ||
manager.go | ||
parser.y | ||
parser.y.go | ||
recording.go | ||
rules_test.go | ||
rules.go | ||
telemetry.go |