Status of DispatchQueue.concurrentPerform on Linux?

I did some performance testing, and found that while using
concurrentPerform for a set of long running operations resulted in half the
execution time of synchronous code on macOS, on Linux the execution time
was not meaningfully different from the synchronous version. Is this
expected?

Cheers,
Spencer Kohan

For what it's worth, I've been using DispatchQueue.concurrentPerform on my
own projects that run on both Darwin and Linux and it's worked well for
both. I haven't noticed the issue you're describing.

Perhaps you could include a repro case that demonstrates this behavior?

PS: However, my Swift CLI executables that use this are much slower on
Linux, but that's more due to corelibs Foundation than anything related to
Dispatch.

ยทยทยท

On Tue, 28 Nov 2017 at 02:55 Spencer Kohan via swift-corelibs-dev < swift-corelibs-dev@swift.org> wrote:

I did some performance testing, and found that while using
concurrentPerform for a set of long running operations resulted in half the
execution time of synchronous code on macOS, on Linux the execution time
was not meaningfully different from the synchronous version. Is this
expected?

Cheers,
Spencer Kohan
_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev