You should specify the capacity parameter of the Hashtable constructor to avoid resize operations while adding keys, i.e.  ```new Hashtable (value.Count, StringComparer.OrdinalIgnoreCase);```

Before your change, this was done internally by the constructor that takes an IDictionary.