Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix a couple edge cases. * no implicit prelude.
- Loading branch information
Showing
6 changed files
with
72 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
packages/yew-macro/tests/hook_attr/hook-dynamic-dispatch-pass.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#![no_implicit_prelude] | ||
|
||
#[::yew::prelude::hook] | ||
fn use_boxed_fn(_f: ::std::boxed::Box<dyn::std::ops::Fn(&str) -> &str>) { | ||
::std::todo!() | ||
} | ||
|
||
fn main() {} |
8 changes: 8 additions & 0 deletions
8
packages/yew-macro/tests/hook_attr/hook-return-impl-trait-pass.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#![no_implicit_prelude] | ||
|
||
#[::yew::prelude::hook] | ||
fn use_deref_as_u32() -> impl ::std::ops::Deref<Target = ::std::primitive::u32> { | ||
::std::rc::Rc::new(0) | ||
} | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#![no_implicit_prelude] | ||
|
||
#[::yew::prelude::hook] | ||
fn use_str_ref(f: &::std::primitive::str) -> &::std::primitive::str { | ||
f | ||
} | ||
|
||
fn main() {} |
6fb5473
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yew master branch benchmarks (Lower is better)
yew-struct-keyed 01_run1k
161.505
162.3635
0.99
yew-struct-keyed 02_replace1k
186.3345
187.0155
1.00
yew-struct-keyed 03_update10th1k_x16
344.2385
329.96500000000003
1.04
yew-struct-keyed 04_select1k
64.89349999999999
53.821
1.21
yew-struct-keyed 05_swap1k
81.49350000000001
77.1215
1.06
yew-struct-keyed 06_remove-one-1k
25.77
25.424999999999997
1.01
yew-struct-keyed 07_create10k
2828.4880000000003
2912.3915
0.97
yew-struct-keyed 08_create1k-after1k_x2
400.5415
409.2745
0.98
yew-struct-keyed 09_clear1k_x8
174.517
186.4505
0.94
yew-struct-keyed 21_ready-memory
1.457233428955078
1.457233428955078
1
yew-struct-keyed 22_run-memory
1.6948280334472656
1.6556472778320312
1.02
yew-struct-keyed 23_update5-memory
1.7004127502441406
1.6958503723144531
1.00
yew-struct-keyed 24_run5-memory
1.705596923828125
1.944721221923828
0.88
yew-struct-keyed 25_run-clear-memory
1.328125
1.3280715942382812
1.00
yew-struct-keyed 31_startup-ci
1734.6999999999998
1839.414
0.94
yew-struct-keyed 32_startup-bt
26.54
31.728
0.84
yew-struct-keyed 33_startup-mainthreadcost
206.772
218.8160000000001
0.94
yew-struct-keyed 34_startup-totalbytes
328.7392578125
328.7392578125
1
This comment was automatically generated by workflow using github-action-benchmark.