Dave Zych
  • Home
  • About
  • Contact
  • Privacy

performance

A collection of 1 post
C#

If you're using enum.ToString() that often, you're doing it wrong

Daniel Wertheim measured the performance of enum.ToString and found it to be 400x slower than using a comparable class with const’s. [http://danielwertheim.se/2014/09/30/c-someenum-tostring-measured-to-be-400x-slower/] That’s a massive difference, and something that, in theory, might make you think otherwise about using an enum. But
Oct 1, 2014 1 min read
Page 1 of 1
Dave Zych © 2025
  • Data & privacy
  • Contact
Powered by Ghost