どうやら Iterator::fold がかなり効率の悪いアセンブリコードを吐いているところまで分かったので,for で書き直したら該当箇所が3倍弱速くなった.しかし理由はよく分かってない https://github.com/rhysd/misc/commit/ed1590acc42ac39dadd3f069e74d1c9c4c572437
どうやら Iterator::fold がかなり効率の悪いアセンブリコードを吐いているところまで分かったので,for で書き直したら該当箇所が3倍弱速くなった.しかし理由はよく分かってない https://github.com/rhysd/misc/commit/ed1590acc42ac39dadd3f069e74d1c9c4c572437
If you have a fediverse account, you can quote this note from your own instance. Search https://mstdn.jp/users/Linda_pp/statuses/115201774255285823 on your instance and quote it. (Note that quoting is not supported in Mastodon.)