Updates to ThreadLocalVar #387
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR included two updates, both of which warrant discussion.
In my benchmark tests the JRuby version performs significantly worse. The advantage, however, is that it leverages the JVM directly rather than using our Ruby implementation. In our experience, JRuby interop is significantly slower than pure-Java wrappers. Thus we've begun creating pure-Java implementations for some abstraction. It's possible that a pure-Java wrapper--which could be added at any time--will perform significantly better.
My preference is to use the JRuby version since it leveraged the JVM directly, but my feelings aren't strong. I could be convinced otherwise. If memory serves, @pitr-ch echoed this sentiment, but I can't find the comment. I may be wrong on that.
// @alexdowad