Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Move XF.ConcurrentDictionary to WP8 project #685
Description of Change
Forms has its own version of ConcurrentDictionary<TKey, TValue> in order to support platforms which don't have a ConcurrentDictionary available. At this point, the only platform without a ConcurrentDictionary available is Windows Phone 8. For all of the other platforms, the ConcurrentDictionary available in .NET/Mono is already being used to support other classes, which means that during startup both versions of the class are being JIT-compiled.
This change moves the Forms version of ConcurrentDictionary into the Windows Phone 8 platform project and switches to the .NET/Mono ConcurrentDictionary in the other platforms. This avoids the extra JIT compilation cost (e.g., ~160 ms on a Nexus 6) for the non-WP8 platforms and in the long term will reduce the number of classes Forms needs to maintain.