Skip to content

Conversation

sylwit
Copy link

@sylwit sylwit commented May 13, 2024

Refactor label parser to make it more readable and and faster

Signed-off-by: Sylvain Witmeyer <sylvain.witmeyer@gmail.com>
@sylwit sylwit force-pushed the feature/refactor_parser branch from 4023449 to cc86745 Compare May 13, 2024 23:52
@@ -37,57 +37,29 @@ def _replace_escaping(s: str) -> str:
return ESCAPING_RE.sub(replace_escape_sequence, s)


def _is_character_escaped(s: str, charpos: int) -> bool:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this function is moved to openmetrics/parser.py

@sylwit sylwit force-pushed the feature/refactor_parser branch from a84f6d3 to 7205ac5 Compare May 14, 2024 03:06
Signed-off-by: Sylvain Witmeyer <sylvain.witmeyer@gmail.com>
@sylwit sylwit force-pushed the feature/refactor_parser branch from 7205ac5 to 139d601 Compare May 14, 2024 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant