Skip to content

Use threading to further decrease benchmark running time.#24

Open
abeaumont wants to merge 1 commit into
dylan-lang:masterfrom
abeaumont:master
Open

Use threading to further decrease benchmark running time.#24
abeaumont wants to merge 1 commit into
dylan-lang:masterfrom
abeaumont:master

Conversation

@abeaumont

Copy link
Copy Markdown
Member

No description provided.

Comment thread binary-trees.dylan
for (thread in threads)
thread & join-thread(thread);
end;
for (message in messages)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the order of the output important for their benchmark harness? If so, I guess you could put pair(i, msg) into messages and sort by i.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I assume the output order is important, but messages are already sorted through their indices (each task stores the result in the i-th message)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants