-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redo derive(Properties), take 2 (#2729)
* remove props checking, but take builder by mut ref * allow property name `build` * add rough state token machinery * first working impl, readd props checking * improve error message * add documentation and last adjustements * address review
- Loading branch information
1 parent
015412e
commit 75bb903
Showing
13 changed files
with
531 additions
and
438 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
Oops, something went wrong.
75bb903
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
197.445
173.1965
1.14
yew-struct-keyed 02_replace1k
210.9265
185.558
1.14
yew-struct-keyed 03_update10th1k_x16
381.963
433.353
0.88
yew-struct-keyed 04_select1k
67.2205
94.892
0.71
yew-struct-keyed 05_swap1k
95.391
119.07
0.80
yew-struct-keyed 06_remove-one-1k
34.159000000000006
38.1445
0.90
yew-struct-keyed 07_create10k
3472.1585
3255.804
1.07
yew-struct-keyed 08_create1k-after1k_x2
462.481
434.6715
1.06
yew-struct-keyed 09_clear1k_x8
202.455
178.334
1.14
yew-struct-keyed 21_ready-memory
1.4694786071777344
1.4694786071777344
1
yew-struct-keyed 22_run-memory
1.6719017028808594
1.6629371643066406
1.01
yew-struct-keyed 23_update5-memory
1.6990013122558594
1.7175788879394531
0.99
yew-struct-keyed 24_run5-memory
1.717529296875
1.710590362548828
1.00
yew-struct-keyed 25_run-clear-memory
1.328399658203125
1.3284416198730469
1.00
yew-struct-keyed 31_startup-ci
1736.908
1881.3
0.92
yew-struct-keyed 32_startup-bt
34.092
44.44399999999999
0.77
yew-struct-keyed 33_startup-mainthreadcost
256.5160000000001
228.1040000000001
1.12
yew-struct-keyed 34_startup-totalbytes
332.2724609375
332.2763671875
1.00
This comment was automatically generated by workflow using github-action-benchmark.
75bb903
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.
This commit break my code. I use Properties with generics, for example:
This results in the following error:
Also, I often use code like:
This results in a similar error:
75bb903
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.
@maurerdietmar Sorry for that, it seems the test cases need expansion, I can reproduce the issue. Expect a follow up soon and you can pin to the commit prior to this in the meanwhile.