Fastest way to separate the digits of an int into an array in .NET?

后端 未结 11 808
天涯浪人
天涯浪人 2021-01-31 20:07

I want to separate the digits of an integer, say 12345, into an array of bytes {1,2,3,4,5}, but I want the most performance effective way to do that, because my program does tha

11条回答
  •  北荒
    北荒 (楼主)
    2021-01-31 20:59

    'Will' vs 'Does'? I'm a huge fan of optimizing code after it's wrote, profiled, and it's been determined to be the bottleneck.

提交回复
热议问题