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

ISPN-1803 #897

Merged
merged 5 commits into from Jan 30, 2012
Merged

ISPN-1803 #897

merged 5 commits into from Jan 30, 2012

Conversation

Sanne
Copy link
Member

@Sanne Sanne commented Jan 27, 2012

This is lowering the cost for initializing Marshaller instances by a good 50%, as the array-size reducing configuration was not applied to most of the Marshallers we actually create.

https://issues.jboss.org/browse/ISPN-1803

@Sanne
Copy link
Member Author

Sanne commented Jan 27, 2012

[FIXED]

@danberindei
Copy link
Member

GenericJBossMarshaller is only called in the HotRod client and server - I put a breakpoint in getMarshaller() and it was never hit during a Transactional run.

And even if you were testing HotRod, GenericJBossMarshaller caches a thread-local instance of Marshaller + it doesn't have MarshalledValues - so it would create only one Marshaller instance per thread.

@Sanne
Copy link
Member Author

Sanne commented Jan 29, 2012

@danberindei sorry, I messed up here. Thank you so much for checking!
The pull request is missing the most important changes - where you see FIXED in the comment above, I had realized I had many failures just after sending the pull request, and hastily removed the offending commit. Consider this a preview for now, I still need to fix it. Maybe I should have closed the pull request?

But the changes up to this point are fine I think. WDYT ?

I didn't really realize this was going to affect Hot Rod as well.

@danberindei
Copy link
Member

@Sanne Your changes look fine - I just didn't see where the big speed-up came from :)

GenericJBossMarshaller is used by default in HotRod, but if you want to use it from other languages you have to configure ApacheAvroMarshaller instead. So perhaps we should configure ApacheAvroMarshaller to be the default instead (unless it's much slower).

@danberindei danberindei merged commit add0eaf into infinispan:master Jan 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants