Avatar for the FuelLabs user
FuelLabs
sway
BlogDocsChangelog

More Sway compiler optimizations

#7093Merged
Comparing
xunilrj/sway-optimizations-2
(
8fed389
) with
master
(
7cb7809
)
CodSpeed Performance Gauge
×140
Improvements
11
Untouched
11

Benchmarks

Improved

did_change_with_caching
sway-lsp/benches/lsp_benchmarks/compile.rs::benches::benchmarks::did_change_with_caching
CodSpeed Performance Gauge
×140
520.9 ms3.8 ms
find_all_references
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::find_all_references
CodSpeed Performance Gauge
×9.1
47.4 ms5.2 ms
rename
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::rename
CodSpeed Performance Gauge
×9.1
47.4 ms5.2 ms
inlay_hints
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::inlay_hints
CodSpeed Performance Gauge
×8.6
18.7 ms2.2 ms
highlight
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::highlight
CodSpeed Performance Gauge
×7.7
44.7 ms5.8 ms
tokens_at_position
sway-lsp/benches/lsp_benchmarks/token_map.rs::benches::benchmarks::tokens_at_position
CodSpeed Performance Gauge
×6.1
18.8 ms3.1 ms
parent_decl_at_position
sway-lsp/benches/lsp_benchmarks/token_map.rs::benches::benchmarks::parent_decl_at_position
CodSpeed Performance Gauge
×6.1
18.8 ms3.1 ms
document_symbol
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::document_symbol
CodSpeed Performance Gauge
×6.1
19.1 ms3.1 ms
traverse
sway-lsp/benches/lsp_benchmarks/compile.rs::benches::benchmarks::traverse
CodSpeed Performance Gauge
×4.8
230.9 ms48.3 ms
completion
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::completion
CodSpeed Performance Gauge
×3.9
21.1 ms5.3 ms
code_action
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::code_action
CodSpeed Performance Gauge
×3.9
28.3 ms7.2 ms

Passed

goto_definition
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::goto_definition
CodSpeed Performance Gauge
+6%
1.8 ms1.7 ms
prepare_rename
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::prepare_rename
CodSpeed Performance Gauge
+6%
1.8 ms1.7 ms
token_at_position
sway-lsp/benches/lsp_benchmarks/token_map.rs::benches::benchmarks::token_at_position
CodSpeed Performance Gauge
+5%
1.8 ms1.7 ms
idents_at_position
sway-lsp/benches/lsp_benchmarks/token_map.rs::benches::benchmarks::idents_at_position
CodSpeed Performance Gauge
+3%
487.2 µs472.6 µs
code_lens
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::code_lens
CodSpeed Performance Gauge
+3%
5.5 µs5.4 µs
tokens_for_file
sway-lsp/benches/lsp_benchmarks/token_map.rs::benches::benchmarks::tokens_for_file
CodSpeed Performance Gauge
+2%
1.8 ms1.7 ms
semantic_tokens
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::semantic_tokens
CodSpeed Performance Gauge
+1%
3.3 ms3.2 ms
on_enter
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::on_enter
CodSpeed Performance Gauge
0%
126 µs125.8 µs
format
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::format
CodSpeed Performance Gauge
0%
465 ms466.1 ms
hover
sway-lsp/benches/lsp_benchmarks/requests.rs::benches::benchmarks::hover
CodSpeed Performance Gauge
-1%
3.7 ms3.7 ms
compile
sway-lsp/benches/lsp_benchmarks/compile.rs::benches::benchmarks::compile
CodSpeed Performance Gauge
-5%
3.6 s3.8 s

Commits

Click on a commit to change the comparison range
Base
master
7cb7809
×9.1
removing bytecount from deps
510d2de
6 months ago
by xunilrj
×130
eliminate TyProgram::clone when using cache
7b44fad
6 months ago
by xunilrj
-37.58%
clippy and fmt issues
1204dac
6 months ago
by xunilrj
×2.1
Merge branch 'master' into xunilrj/sway-optimizations-2
f4c1ed0
5 months ago
by JoshuaBatty
-87.74%
Merge branch 'master' into xunilrj/sway-optimizations-2
8fed389
5 months ago
by IGI-111
© 2025 CodSpeed Technology
Home Terms Privacy Docs