prometheus/model/textparse
Manik Rana 032ca9ef96
[PERF] textparse: further optimzations for OM CreatedTimestamps ()
* feat: Added more tests; some changes/optimizations when pair-programming with Bartek.

Signed-off-by: Manik Rana <manikrana54@gmail.com>

* chore: imports

Signed-off-by: Manik Rana <manikrana54@gmail.com>

* chore: gofumpt

Signed-off-by: Manik Rana <manikrana54@gmail.com>

* feat: use an efficient replacement to p.Metric

Signed-off-by: Manik Rana <manikrana54@gmail.com>

* feat: reduce mem allocs + comments

Signed-off-by: Manik Rana <manikrana54@gmail.com>

* chore: gofumpt

Signed-off-by: Manik Rana <manikrana54@gmail.com>

* chore: use single quotes

Co-authored-by: Bartlomiej Plotka <bwplotka@gmail.com>
Signed-off-by: Manik Rana <Manikrana54@gmail.com>

* refac: rename

Co-authored-by: Bartlomiej Plotka <bwplotka@gmail.com>
Signed-off-by: Manik Rana <Manikrana54@gmail.com>

* refac: rename to seriesHash

Signed-off-by: Manik Rana <manikrana54@gmail.com>

* refac: switch condition order

Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
Signed-off-by: Manik Rana <Manikrana54@gmail.com>

* refac: switch condition order

Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
Signed-off-by: Manik Rana <Manikrana54@gmail.com>

* feat: stronger checking

Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
Signed-off-by: Manik Rana <Manikrana54@gmail.com>

* chore: fmt

Signed-off-by: Manik Rana <manikrana54@gmail.com>

* refac: pass pointer of buf into seriesHash()

Signed-off-by: Manik Rana <manikrana54@gmail.com>

---------

Signed-off-by: Manik Rana <manikrana54@gmail.com>
Signed-off-by: Manik Rana <Manikrana54@gmail.com>
Co-authored-by: Bartlomiej Plotka <bwplotka@gmail.com>
Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
2024-10-10 12:01:13 +01:00
..
testdata textparse: Refactored benchmark () 2024-10-07 09:55:26 +01:00
benchmark_test.go textparse: Refactored benchmark () 2024-10-07 09:55:26 +01:00
interface.go textparse: Refactored main testing utils for reusability; fixed proto Units. () 2024-10-07 12:17:44 +01:00
interface_test.go textparse: Refactored main testing utils for reusability; fixed proto Units. () 2024-10-07 12:17:44 +01:00
openmetricslex.l
openmetricslex.l.go UTF-8: Add support for parsing UTF8 metric and label names 2024-02-15 14:34:37 -05:00
openmetricsparse.go [PERF] textparse: further optimzations for OM CreatedTimestamps () 2024-10-10 12:01:13 +01:00
openmetricsparse_test.go [PERF] textparse: further optimzations for OM CreatedTimestamps () 2024-10-10 12:01:13 +01:00
promlex.l
promlex.l.go
promparse.go Neater string vs byte-slice conversions () 2024-09-21 12:19:21 +02:00
promparse_test.go textparse: Refactored main testing utils for reusability; fixed proto Units. () 2024-10-07 12:17:44 +01:00
protobufparse.go textparse: Refactored main testing utils for reusability; fixed proto Units. () 2024-10-07 12:17:44 +01:00
protobufparse_test.go textparse: Refactored main testing utils for reusability; fixed proto Units. () 2024-10-07 12:17:44 +01:00
README.md

Making changes to textparse lexers

In the rare case that you need to update the textparse lexers, edit promlex.l or openmetricslex.l and then run the following command: golex -o=promlex.l.go promlex.l

Note that you need golex installed: go get -u modernc.org/golex