Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Open
aleemstreak wants to merge 1 commit into
objectify:masterobjectify/objectify:masterfrom
aleemstreak:masteraleemstreak/objectify:masterCopy head branch name to clipboard
Open

use method handles to set and get on Fields for performance#10
aleemstreak wants to merge 1 commit into
objectify:masterobjectify/objectify:masterfrom
aleemstreak:masteraleemstreak/objectify:masterCopy head branch name to clipboard

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

ZiglioUK commented May 23, 2016

Copy link
Copy Markdown

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.