-
kbalazs@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=66378 Reviewed by Zoltan Herczeg. Use the appropriate libdispatch API for our use case. Throw away the hard coded limit of parallel threads and use dispatch_apply with the default priority normal queue istead of using our own custom serial queue (which was a misuse of the API). Enabling PARALLEL_JOBS is now a 60% win (2.63x as fast) on the methanol benchmark (https://gitorious.org/methanol) with an SVG centric test set while the old implementation was almost identical (less than 5% win). * wtf/ParallelJobsLibdispatch.h: (WTF::ParallelEnvironment::ParallelEnvironment): (WTF::ParallelEnvironment::execute): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96492 268f45cc-cd09-0410-ab3c-d52691b4dbfc
a29e08d7