Replies: 2 comments
-
The yew/packages/yew/src/virtual_dom/mod.rs Lines 102 to 110 in aa9b9b2 I'm not sure how |
Beta Was this translation helpful? Give feedback.
-
To be sure, I did a small benchmark to see the actual difference:
The only one that is significantly faster is the I'll do the pull request, because the feature has some practical use IMHO. PS. |
Beta Was this translation helpful? Give feedback.
-
Would it make sense to have an
into_string()
function forAttrValue
that consumes theAttrValue
and returns the ownedString
from theAttrValue
whenever possible?I have at least one case where I need to use the embedded
String
from theAttrValue
. Of course I can useto_string()
, but this comes with some overhead that may be avoided.Example implementation:
Beta Was this translation helpful? Give feedback.
All reactions