Skip to content

Avoid eager help message evaluation during parser construction#1134

Merged
olzhasar-reef merged 1 commit intomasterfrom
console-tool-parser
Jan 26, 2026
Merged

Avoid eager help message evaluation during parser construction#1134
olzhasar-reef merged 1 commit intomasterfrom
console-tool-parser

Conversation

@olzhasar-reef
Copy link
Collaborator

@olzhasar-reef olzhasar-reef commented Jan 13, 2026

Parser usage help messages are being extracted from text descriptions and processed via rst2ansi. The last step is quite expensive to compute.
The current PR fixes the eager processing of such help messages during parser initialization by making the computation lazy

@olzhasar-reef olzhasar-reef changed the title Cache parser in ConsoleTool to avoid repetitive build for each cmd Avoid eager help message evaluation during parser construction Jan 14, 2026
@olzhasar-reef olzhasar-reef marked this pull request as ready for review January 14, 2026 19:22
@olzhasar-reef olzhasar-reef merged commit d4b41af into master Jan 26, 2026
38 checks passed
@olzhasar-reef olzhasar-reef deleted the console-tool-parser branch January 26, 2026 21:56
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.

2 participants