-
Notifications
You must be signed in to change notification settings - Fork 802
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix the race! #1158
Fix the race! #1158
Conversation
This fixes #1092. @DanMcGann @acxz @cdb0y511 @matlabbe could you all take a look and see if this fixed your problem? |
Can we get some performance numbers please? |
I did tracing locally, the lock is only hit about 5 times per optimization and the performance impact is neglectable. @varunagrawal |
Having full performance metrics would still be great. Think about when something changes in the future and someone else comes and looks at this PR. |
Before: 1.33s per optimization |
@dellaert It would be great if this can be merged before 4.2a6, since this is very important for TBB to be actually used in practice. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Great stuff Fan.
Thanks Varun! |
Please note 4.2a6 is already set in stone: Linux wheels have been out. We can't have 2 different 4.2a6 versions! |
This fixes the TBB race by adding proper locks.