This is an archive of the discontinued LLVM Phabricator instance.

Use one task per iteration in parallel_for_loop
ClosedPublic

Authored by rafael on Nov 15 2016, 11:59 AM.

Details

Reviewers
ruiu
grimar
Summary

This seems far more natural. A user can create larger chunks if the overhead is too large.

With this linking xul with "--threads --build-id=sha1 goes from 13.938177535 to 11.035953538 seconds on linux.

Diff Detail

Event Timeline

rafael retitled this revision from to Use one task per iteration in parallel_for_loop.
rafael updated this object.
rafael added reviewers: ruiu, grimar.
rafael added a subscriber: llvm-commits.
ruiu accepted this revision.Nov 15 2016, 1:29 PM
ruiu edited edge metadata.

Ah, okay, you already created a patch. LGTM.

This revision is now accepted and ready to land.Nov 15 2016, 1:29 PM
grimar accepted this revision.Nov 15 2016, 11:43 PM
grimar edited edge metadata.

LGTM.

grimar closed this revision.Dec 2 2016, 11:57 PM

Was committed as r287042