Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MOXy performance - PrivilegedAccessHelper #2134

Open
plutext opened this issue May 8, 2024 · 0 comments
Open

MOXy performance - PrivilegedAccessHelper #2134

plutext opened this issue May 8, 2024 · 0 comments

Comments

@plutext
Copy link

plutext commented May 8, 2024

Describe the bug

MOXy is approx 10 times slower than glassfish in unmarshalling in my application

in my testing, 67% of time is spent in the two org.eclipse.persistence.internal.security.PrivilegedAccessHelper.getClassForName methods

There are classes not being found in the hashmap (since they aren't primitives but rather, my XJC generated classes), so 66.5% of time is spent in java.lang.Class.forName().

In my testing, caching the results of the class lookups reduces time taken by 75% (test run time down from 400 secs to 100 secs).

To Reproduce

EclipseLink versions tested include 2.5.2, 2.7.4, 3.0.2, 4.0.2

Somewhat related https://bugs.eclipse.org/bugs/show_bug.cgi?id=447342

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

No branches or pull requests

1 participant