Dear all
Because jdk HashMap use Object type for the key and value, so I write a Hashtable for <int, int>, but the put and get speed to slow.
In the test code, one million put and get need 235ms and 150ms.(Use nanotime). But when I write the code with C, it less then 1ms. So I know
the problem is inline, the function call use so many time then running logic code. But how can I inline the function?