mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 05:34:05 -08: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.go | ||
helpers_test.go | ||
lexer.l | ||
lexer.l.go | ||
load.go | ||
Makefile | ||
manager.go | ||
parser.y | ||
parser.y.go | ||
recording.go | ||
rules.go | ||
rules_test.go | ||
telemetry.go |