Files
oak-gpui/crates
Joseph T. Lyons f5d5fab2c8 Improve fold_at_level performance (#19845)
Just spotted a tiny error that was causing us to continue looking for
nested folds 1 layer deeper than any fold already found at the target
level. We shouldn't continue to seek for a deeper fold after the fold at
the target level is found.

Tested on a debug build and used `editor.rs` as the source material:

```
Old

Level 1 fold:
[crates/editor/src/editor.rs:10777:9] counter = 2806
[crates/editor/src/editor.rs:10778:9] time_elapsed = 320.570792ms

Level 2 fold:
[crates/editor/src/editor.rs:10777:9] counter = 5615
[crates/editor/src/editor.rs:10778:9] time_elapsed = 497.4305ms

Level 3 fold:
[crates/editor/src/editor.rs:10777:9] counter = 7528
[crates/editor/src/editor.rs:10778:9] time_elapsed = 619.818334ms

New

Level 1 fold:
[crates/editor/src/editor.rs:10776:9] counter = 543
[crates/editor/src/editor.rs:10777:9] time_elapsed = 139.115625ms

Level 2 fold:
[crates/editor/src/editor.rs:10776:9] counter = 2806
[crates/editor/src/editor.rs:10777:9] time_elapsed = 312.560416ms

Level 3 fold:
[crates/editor/src/editor.rs:10776:9] counter = 5615
[crates/editor/src/editor.rs:10777:9] time_elapsed = 498.873292ms
```

Release Notes:

- N/A
2024-10-28 13:37:28 -04:00
..
2024-10-24 12:14:03 -06:00
2024-10-27 19:44:21 -07:00
2024-10-24 12:14:03 -06:00
2024-10-24 12:14:03 -06:00
2024-10-27 19:44:21 -07:00
2024-10-21 13:05:30 +03:00
2024-09-13 13:17:49 -04:00
2024-04-30 23:31:59 -06:00
2024-08-13 23:06:07 -07:00
2024-10-28 15:34:03 +01:00
2024-10-26 03:32:22 +03:00
2024-07-15 17:04:15 -06:00
2024-10-21 13:05:30 +03:00
2024-10-21 13:05:30 +03:00
2024-10-02 13:27:16 +02:00
2024-10-23 00:14:43 -07:00
2024-10-28 15:34:03 +01:00