daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest Feb 25th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for (int index = 0; length = map.length; index < length; ++index)
  2. {
  3.     StringInt pair = map[index];  // 27 ticks
  4.     string key1 = map[index].StringValue; // 539 ticks
  5.     string key2 = pair.StringValue; // 534 ticks -- just testing this
  6.     if (string.Equals(key1,target, StringComparison.OrdinalIgnoreCase)) //115 ticks
  7.           return pair.IntegerValue;   // 530 ticks
  8.  
  9.     return -1; // 19 ticks
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top