-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit 77dadfe
chore: Make terminal_view own the TerminalSlashCommand (#31070)
This reduces 'touch crates/editor/src/editor.rs && cargo +nightly build'
from 8.9s to 8.5s. That same scenario used to take 8s less than a week
ago. :)
I'm measuring with nightly rustc, because it's compile times are better
than those of stable thanks to
rust-lang/rust#138522
main (8.2s total):

[cargo-timing.html.zip](https://github.com/user-attachments/files/20364175/cargo-timing.html.zip)
#22be776 (7.5s total):
[cargo-timing-20250521T085303.892834Z.html.zip](https://github.com/user-attachments/files/20364391/cargo-timing-20250521T085303.892834Z.html.zip)

Release Notes:
- N/A1 parent 0023b37 commit 77dadfe
File tree
22 files changed
+42
-92
lines changed- crates
- agent
- src
- assistant_context_editor
- src
- assistant_slash_commands
- src
- assistant_slash_command/src
- eval
- src
- language_model_selector
- terminal_view
- src
22 files changed
+42
-92
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
| |
83 | - | ||
84 | 83 |
| |
85 | 84 |
| |
86 | 85 |
| |
| |||
287 | 286 |
| |
288 | 287 |
| |
289 | 288 |
| |
290 | - | ||
291 | 289 |
| |
292 | 290 |
| |
293 | 291 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
55 | - | ||
56 | 55 |
| |
57 | 56 |
| |
58 | 57 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
217 | 217 |
| |
218 | 218 |
| |
219 | 219 |
| |
220 | - | ||
221 | 220 |
| |
222 | 221 |
| |
223 | 222 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 | - | ||
7 | - | ||
6 | + | ||
8 | 7 |
| |
9 | 8 |
| |
9 | + | ||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 | + | ||
20 | 21 |
| |
21 | 22 |
| |
22 | 23 |
| |
| |||
30 | 31 |
| |
31 | 32 |
| |
32 | 33 |
| |
33 | - | ||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 | + | ||
12 | 13 |
| |
13 | 14 |
| |
14 | 15 |
| |
| |||
24 | 25 |
| |
25 | 26 |
| |
26 | 27 |
| |
27 | - | ||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 | + | ||
11 | 12 |
| |
12 | 13 |
| |
13 | 14 |
| |
| |||
30 | 31 |
| |
31 | 32 |
| |
32 | 33 |
| |
33 | - | ||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 | + | ||
25 | 26 |
| |
26 | 27 |
| |
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
30 | 31 |
| |
31 | 32 |
| |
32 | - | ||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 | + | ||
36 | 37 |
| |
37 | 38 |
| |
38 | 39 |
| |
39 | 40 |
| |
40 | 41 |
| |
42 | + | ||
41 | 43 |
| |
42 | 44 |
| |
43 | 45 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 | + | ||
5 | 6 |
| |
6 | 7 |
| |
7 | 8 |
| |
|
0 commit comments