forked from java-native-access/jna
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use FastThreadLocal for the Mac instances (java-native-access#621)
Motivation: Creating a new Mac instance each time is wasteful. As the method is expected to be called from the EventLoop we should better cache these in a FastThreadLocal Modifications: Cache instances in FastThreadLocal Result: Less overhead
- Loading branch information
1 parent
a59908a
commit 0fa01f4
Showing
1 changed file
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters