Has anyone used the .Net Task Parallel Library with ArcObjects?

Discussion created by Hornbydd on Mar 24, 2016

I've recently upgraded to ArcGIS 10.4 and noted that this release uses the .NET 4.5 Framework which gives you access to the Task Parallel Library. This sounds like a really exciting way of improving performance on multi-core desktops. Has anyone out there used this in an AddIn to improve performance? If so what were your experiences? I've not tried it yet but it seems to be sold as making the art of coding parallelism into your code much easier (great news for simpletons like me) but is that the reality, especially if your code is calling various parts of ArcObjects?


I've tinkered around with the multiprocessing module in python, that worked great but was a bit painful to get going and I probably do more VB .net than python so I just thought it would be good to hear from anyone who develops in ArcObjects to see if there are any pitfalls or it really is as good as it sounds!