DISQUS

DISQUS Hello!  The comments on this profile are unclaimed and thus are unverified.

Do they belong to you? Claim these comments.

Jacob Hookom's picture

Unregistered

Feeds

aliases

  • Jacob Hookom
  • jhook

Jacob Hookom

1 year ago

in Turbocharge your string keyed hashmaps on /var/log/mind
Looking at your tests, theres a couple issues: 1) you run the 'usual' test first without a JVM warmup-- so that 1% probably shouldn't even be there, I'd even say you'd hit a negative ratio there. 2) You aren't accounting for the Symbol map lookup in your tests and are using a hard reference to the symbols. A real world example of the testSymbol would be to walk through each String key, do a Symbol.get(...) and then do the hashmap lookup.

1 year ago

in Turbocharge your string keyed hashmaps on /var/log/mind
How could that be faster when you are just deferring the regular String lookup to the Symbol map and then only slightly optimizing *another* hash lookup. If you make a case to keep a hard reference to the Symbol object outside of the map, then you might as well do that for the String itself and get the same optimization.

2 years ago

in Kathy Sierra, Hani Suleiman, and Tim Bray on Curious Creature
yes, it's horrible what happened to kathy, but to put hani or any other bellicose java blogger in the same capacity as those who convey death threats or physical harm is just stupid. tim wasn't the only one to make that comparison.
Returning? Login