LoginSignup
6
6

More than 5 years have passed since last update.

BitConverterは速いって話をしたな。あれは嘘だ。

Posted at

すいません。ごめんなさい。

コードの最適化ありなしで速度が変わる事がわかりました。

コード最適化なし

BitConverter 50ms
Marshal 802ms
unsafe 140ms

コード最適化ある

BitConverter 49ms
Marshal 631ms
unsafe 32ms

現実的にコード最適化しないとかないのでBitConverterよりunsageの方が速いです。
unsafeとコード最適化のからみはいずれ調べたいです。

6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6