Skip to content

1.23.7: feat: performance enhancements#60

Merged
kosa12 merged 5 commits into
masterfrom
feat/optimizations
Feb 4, 2026
Merged

1.23.7: feat: performance enhancements#60
kosa12 merged 5 commits into
masterfrom
feat/optimizations

Conversation

@kosa12

@kosa12 kosa12 commented Feb 3, 2026

Copy link
Copy Markdown
Owner

Config parser improvements:

  • Refactored the config parser in src/parser/mod.rs to use a RecursiveParseContext struct for passing context, improving code clarity and maintainability. Enhanced variable resolution logic to handle overlapping variable names correctly and avoid infinite loops. Improved glob pattern handling and directory sourcing logic for configuration files. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

HUD configuration enhancements:

  • Refactored the HudPosition enum in src/config/hud.rs to implement the FromStr trait for safer string parsing, and replaced the custom to_str method with the idiomatic as_str. Updated config loading and saving functions to use the new API, improving robustness and correctness. [1] [2] [3] [4]

- parser: optimized 'glob' usage by checking for wildcard characters before compiling patterns
- parser: optimized 'resolve_variables' to use single-pass scanning instead of repeated string replacements
- backup: refactored 'list_backups' and 'perform_backup' to accept optional StyleConfig, preventing redundant config reloading
- config: implement  for  to adhere to Rust conventions
- parser: refactor  and  to use context structs, reducing argument count and fixing clippy warning
- parser: restore corrupted file content and fix syntax errors introduced during optimization attempts
@kosa12 kosa12 self-assigned this Feb 3, 2026
@kosa12 kosa12 added the enhancement New feature or request label Feb 3, 2026
@kosa12 kosa12 changed the title Feat/optimizations 1.23.7: feat: performance enhancements Feb 4, 2026
@kosa12 kosa12 marked this pull request as ready for review February 4, 2026 07:36
@kosa12 kosa12 merged commit a29286f into master Feb 4, 2026
2 checks passed
@kosa12 kosa12 deleted the feat/optimizations branch February 4, 2026 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant