mirror of
https://github.com/storytold/craft-libs.git
synced 2026-10-31 15:49:54 +00:00
deserialize_sections tried each top-level key against a document holding every key accepted before it, cloning and deserializing the growing document per key. A config.toml with many unknown keys took quadratic time (20k keys: >2 minutes, now <1 s). Each key is now checked against the defaults plus that key, and accepted keys are merged once. CodeRabbit CWE-407, crates/settings/src/document.rs:47