Skip to content

use method handles to set and get on Fields for performance#10

Open
aleemstreak wants to merge 1 commit intoobjectify:masterfrom
aleemstreak:master
Open

use method handles to set and get on Fields for performance#10
aleemstreak wants to merge 1 commit intoobjectify:masterfrom
aleemstreak:master

Conversation

@aleemstreak
Copy link
Copy Markdown

Here's a rough draft of some code that uses MethodHandles to do the setting and getting. Unfortunately, its not much faster yet. I believe using invokeExact will yield better performance but haven't gotten it to work yet.

Any thoughts or ideas?

@ZiglioUK
Copy link
Copy Markdown

ZiglioUK commented May 23, 2016

A couple of years too late, but perhaps it's because the GAE SDK on GAE's servers prevents you from skipping security checks. Are you seeing an improvement when running locally? Perhaps stepping through would reveal what actually happens. Anyway, Java 8 is coming to GAE so possibly a performance increase according to http://stackoverflow.com/questions/19557829/faster-alternatives-to-javas-reflection (not holding my breath)

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.

2 participants