You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current design makes fixer slow because it requires moving comments in hashmap again and again.
Moving comments involves acquiring / releasing lock and rehashing.
It can be improved using buffer, but maybe there is a fundamental problem.
Yeah, this would be good. I also still think there are race conditions in with_leading and with_trailing where two threads might remove one after the other and one thread would end up with different comments.
It seems like a misdesign.
Problems
Convenience
API is tricky because of comments.
Performance
The current design makes
fixer
slow because it requires moving comments in hashmap again and again.Moving comments involves acquiring / releasing lock and rehashing.
It can be improved using buffer, but maybe there is a fundamental problem.
cc @dsherret as you may be interested in this.
The text was updated successfully, but these errors were encountered: