String to Integer

Best Dot Net Training ForumsString to Integer
Vijay Toorpaty asked 5 years ago
  1. Suppose you need to optimise a program which uses string-to-integer conversion millions of times. Assume the existing ‘int.Parse()’ implementations suffer because they use multiplication which is slow on the hardware you’re targeting.  How can you write this to avoid using multiplication? Describe the ideas, we don’t necessarily need a working implementation.