Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

hashCode

hi all,

I have question about hashCode method in data objects.

Does way of implementing hashCode() influence performance of GigaSpace? Will it make difference if I have there "fieldA * fieldB * fieldC" or "fieldA << 2 + fieldB << 4 + fieldC <<6"? Basicaly is hashCode used for indexing or other frequent operations in space? If yes, what is most advised method to implement it in performance efficient way?

Regards,
Mateusz

This thread was imported from the previous forum.
For your reference, the original is available here

asked 2009-06-19 09:57:11 -0500

mnemos gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Space Class hashcode is not used. The routing field hashcode is used when load-balancing operations across multiple partitions.
Shay

answered 2009-07-28 15:13:58 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2009-06-19 09:57:11 -0500

Seen: 30 times

Last updated: Jul 28 '09