c# - Parallelizing a large amount of Bitmap.Clone operations -


i have dictionary of lists of objects, , each list need load bitmap using associated key, , each object in list, calculate transform, clone bitmap using transform, , save result. amount of objects in each list varies 60,000 1 sometimes, , doing serially take forever. so, tried parallelizing each loop in each list, unfortunately, bitmap class holds global lock, , so, avoid exception, have place lock on cloning , saving code, defeats point of using parallel loop in first place, cloning , saving time-consuming part of process. there way can subimage of bitmap in multiple threads?

it turns out real answer, me @ least, drop gdi+, , use magick.net, better designed this. works perfectly, multithreading , expected speedup.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -