Replace String with SmolStr in Plan
At the moment we use String type for strings in Plan structure. Since we frequently serialize, deserialize and clone Plan, we want to reduce the time spent in these functions. This commit substitutes String type with SmolStr type, which has O(1) clone and, therefore, speeds up cloning.
parent
978d8aea
No related branches found
No related tags found
Showing
- Cargo.lock 1 addition, 0 deletionsCargo.lock
- sbroad-cartridge/Cargo.toml 1 addition, 0 deletionssbroad-cartridge/Cargo.toml
- sbroad-cartridge/src/api/calculate_bucket_id.rs 12 additions, 12 deletionssbroad-cartridge/src/api/calculate_bucket_id.rs
- sbroad-cartridge/src/cartridge.rs 5 additions, 4 deletionssbroad-cartridge/src/cartridge.rs
- sbroad-cartridge/src/cartridge/config.rs 32 additions, 22 deletionssbroad-cartridge/src/cartridge/config.rs
- sbroad-cartridge/src/cartridge/router.rs 41 additions, 16 deletionssbroad-cartridge/src/cartridge/router.rs
- sbroad-cartridge/src/cartridge/storage.rs 30 additions, 13 deletionssbroad-cartridge/src/cartridge/storage.rs
- sbroad-core/src/backend/sql/ir.rs 13 additions, 9 deletionssbroad-core/src/backend/sql/ir.rs
- sbroad-core/src/backend/sql/space.rs 8 additions, 4 deletionssbroad-core/src/backend/sql/space.rs
- sbroad-core/src/backend/sql/tree.rs 33 additions, 30 deletionssbroad-core/src/backend/sql/tree.rs
- sbroad-core/src/backend/sql/tree/tests.rs 7 additions, 6 deletionssbroad-core/src/backend/sql/tree/tests.rs
- sbroad-core/src/cbo.rs 8 additions, 6 deletionssbroad-core/src/cbo.rs
- sbroad-core/src/cbo/helpers.rs 9 additions, 8 deletionssbroad-core/src/cbo/helpers.rs
- sbroad-core/src/cbo/histogram.rs 8 additions, 7 deletionssbroad-core/src/cbo/histogram.rs
- sbroad-core/src/cbo/histogram/normalization.rs 9 additions, 10 deletionssbroad-core/src/cbo/histogram/normalization.rs
- sbroad-core/src/cbo/selectivity.rs 27 additions, 25 deletionssbroad-core/src/cbo/selectivity.rs
- sbroad-core/src/cbo/selectivity/tests.rs 2 additions, 1 deletionsbroad-core/src/cbo/selectivity/tests.rs
- sbroad-core/src/cbo/tests.rs 6 additions, 4 deletionssbroad-core/src/cbo/tests.rs
- sbroad-core/src/errors.rs 29 additions, 26 deletionssbroad-core/src/errors.rs
- sbroad-core/src/executor.rs 3 additions, 2 deletionssbroad-core/src/executor.rs
Loading
Please register or sign in to comment