Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding back-off instead of busy-spinning #3505

Closed
wants to merge 1 commit into from
Closed

Conversation

LalehB
Copy link
Contributor

@LalehB LalehB commented Sep 27, 2014

Also changed the total number of spinning similar to Cilk

Also changed the total number of spinning similar to Cilk
@hoppipolla-critic-bot
Copy link

Critic review: https://critic.hoppipolla.co.uk/r/2714

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

@highfive
Copy link

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!

break
}
}

if (i>100) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a comment saying where this came from? Was this from Cilk, or from performance testing, etc…?

Also, no need for parentheses around if conditions in Rust, just write this as if i > 100.

Additionally, I would make 100 into a constant and hoist it to the top of the file.

@larsbergstrom
Copy link
Contributor

@LalehB Are you still working on this, or would you like one of us to pick this up and land it with the changes? Thanks!

@cgaebel cgaebel mentioned this pull request Oct 27, 2014
bors-servo pushed a commit that referenced this pull request Oct 28, 2014
I addressed all but one of the code review comments, which was a request
for documentation on where a number came from (which I'm not qualified to
answer), and rebased this on to latest master.

xref: #3505 cc: @LalehB @larsbergstrom

r? @pcwalton
@cgaebel cgaebel closed this Oct 28, 2014
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.

None yet

6 participants