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-11 12:33:08 +02:00
2024-10-23 15:13:52 -04:00
2024-09-13 17:44:16 -04:00
2024-10-28 10:37:58 -04:00
2024-10-23 21:26:50 -04:00
2024-09-04 14:32:20 -04:00
2024-09-16 21:55:32 -06:00
2024-10-25 16:27:36 +02:00
2024-09-27 11:06:48 +02: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-07 16:28:33 -07:00
2024-10-28 11:45:18 -04:00
2024-10-27 19:44:21 -07:00
2024-03-29 17:09:49 -07:00
2024-09-06 11:58:39 +02:00
2024-09-06 11:58:39 +02:00
2024-10-28 10:37:58 -04:00
2024-10-21 13:05:30 +03:00
2024-10-07 01:29:58 +02:00
2024-10-24 12:14:03 -06:00
2024-10-25 12:29:25 +02:00
2024-08-26 11:43:13 -04:00
2024-10-28 13:37:28 -04:00
2024-10-11 14:58:58 -07:00
2024-10-28 15:34:03 +01:00
2024-09-13 14:49:50 -04:00
2024-10-11 14:58:58 -07:00
2024-10-15 23:32:44 -07:00
2024-09-13 13:17:49 -04:00
2024-09-26 14:01:05 -06:00
2024-10-28 16:35:37 +01:00
2024-07-29 14:21:41 +02:00
2024-10-27 15:50:54 -07:00
2024-04-30 23:31:59 -06:00
2024-08-13 23:06:07 -07:00
2024-10-27 15:50:54 -07:00
2024-10-07 01:29:58 +02:00
2024-09-27 13:48:37 -07:00
2024-09-26 14:01:05 -06:00
2024-10-28 09:54:18 +01:00
2024-09-13 17:44:16 -04:00
2024-09-06 11:58:39 +02:00
2024-10-15 23:32:44 -07:00
2024-10-25 09:34:50 +02:00
2024-09-06 11:58:39 +02:00
2024-10-21 13:05:30 +03:00
2024-09-06 11:58:39 +02:00
2024-10-28 15:34:03 +01:00
2024-10-28 15:40:50 +01:00
2024-09-10 15:51:01 -04:00
2024-10-23 12:53:49 +02:00
2024-10-28 15:34:03 +01:00
2024-09-06 11:58:39 +02:00
2024-10-11 14:58:58 -07:00
2024-10-26 03:32:22 +03:00
2024-10-21 15:28:22 -06:00
2024-10-27 14:34:59 +01:00
2024-08-28 22:12:49 -07:00
2024-07-15 17:04:15 -06:00
2024-10-25 16:47:44 -06:00
2024-09-25 12:45:41 -07:00
2024-09-29 10:30:48 -06:00
2024-09-27 00:36:17 -06:00
2024-09-26 14:01:05 -06:00
2024-09-27 13:48:37 -07:00
2024-10-28 09:54:18 +01:00
2024-10-21 13:05:30 +03:00
2024-10-15 12:38:03 +02:00
2024-10-21 13:05:30 +03:00
2024-10-28 17:07:30 +01:00
2024-10-26 21:57:22 +03:00
2024-09-16 16:20:17 -06:00
2024-10-28 16:35:37 +01:00
2024-09-27 11:06:48 +02:00
2024-10-28 16:12:37 +01:00
2024-09-06 11:58:39 +02:00
2024-10-25 17:32:54 -06:00
2024-10-28 16:35:37 +01:00
2024-10-25 12:29:25 +02:00
2024-10-18 09:57:00 -07:00
2024-09-10 11:16:27 -04:00
2024-09-29 10:30:48 -06:00
2024-10-27 15:50:54 -07:00
2024-10-15 13:41:51 -04:00
2024-10-23 12:34:51 -04:00
2024-10-07 01:29:58 +02:00
2024-10-27 15:50:54 -07:00
2024-09-06 11:58:39 +02:00
2024-07-22 00:57:34 +02:00
2024-10-07 01:29:58 +02:00
2024-10-02 13:27:16 +02:00
2024-10-11 14:58:58 -07:00
2024-10-05 12:58:45 +03:00
2024-09-06 11:58:39 +02:00
2024-10-24 13:07:20 +02:00
2024-09-29 10:30:48 -06:00
2024-10-23 10:36:14 +03:00
2024-09-06 11:58:39 +02:00
2024-10-04 10:37:41 -04:00
2024-10-23 00:14:43 -07:00
2024-10-16 22:57:39 +03:00
2024-10-11 13:28:34 -04:00
2024-10-24 13:52:26 +02:00
2024-10-24 13:52:26 +02:00
2024-10-17 13:18:13 -04:00
2024-10-25 22:04:02 +03:00
2024-09-07 02:36:55 +02:00
2024-07-24 16:25:52 -04:00
2024-09-06 11:58:39 +02:00
2024-10-27 15:50:54 -07:00
2024-10-28 15:34:03 +01:00
2024-10-28 09:54:18 +01:00
2024-07-08 17:05:30 -04:00
2024-09-13 16:45:16 -04:00
2024-10-27 15:50:54 -07:00
2024-10-27 15:50:54 -07:00
2024-10-25 16:47:44 -06:00
2024-10-15 23:32:44 -07:00
2024-10-28 16:35:37 +01:00
2024-10-27 15:50:54 -07:00
2024-10-28 15:34:03 +01:00
2024-10-15 23:32:44 -07:00