スライスの to_vec() はGenericに実装されているのに対し、文字列の場合は u8 固定なのが影響しているなどありそう
-
Show this thread
-
TはCloneさえ実装していればいい(Copyではない) ので、debugビルドだと要素毎にclone()が呼び出されている
1 reply 2 retweets 3 likesShow this thread -
2 replies 1 retweet 3 likesShow this thread
後ほど検証したところ「特殊化で差が出ている」という仮説がそもそも間違っていたので本記事は取り下げます…
11:21 AM - 24 Oct 2017
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.