Skip to content

perf(config): reduce memory allocation#281

Merged
pythonbrad merged 1 commit into
mainfrom
patch_config
Jun 25, 2026
Merged

perf(config): reduce memory allocation#281
pythonbrad merged 1 commit into
mainfrom
patch_config

Conversation

@pythonbrad

Copy link
Copy Markdown
Member

Related issues

Changes

  • replaced the insert_with_auto_capitalize macro with a capitalize function
  • reduced excessive borrowing and cloning

Additional changes

  • fixed a bug in the capitalize logic
  • split the read_from_filesystem function in read_config and process_config

This commit reduces the memory allocation to increase the performance of
reading a configuration file.

It inroduces the following changes:
- replaced the `insert_with_auto_capitalize` macro with a `capitalize` function
- fixed a bug in the `capitalize` logic
- split the `read_from_filesystem` function in `read_config` and `process_config`
- reduced excessive borrowing and cloning
@pythonbrad pythonbrad self-assigned this Jun 25, 2026
@pythonbrad pythonbrad merged commit 73b64fb into main Jun 25, 2026
5 checks passed
@pythonbrad pythonbrad deleted the patch_config branch June 25, 2026 08:34
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