Better HN
topnewbestaskshowjobs
Log inSign up

johnou

43 karma · joined Jan 16, 2017 (9y ago) · 11 submissions

Submissions

comment 9y ago · link · parent

I'd appreciate it if you could nag one of your colleagues to pick it up ;)

comment 9y ago · link · parent

It's also about giving back to the open source community.

comment 9y ago · link · parent

In this case I feel changing the LRUCache to support generics was an integral part of the changeset to prevent possible regressions with cache usage (as I was changing the cache key from String to another type). Without it, it would be possible to use the incorrect object type in one of the many code paths, by adding generics we benefit from compile time checks.

comment 9y ago · link · parent

But then you are stuck with the maintenance burden..

comment 9y ago · link · parent

I added generics to ensure type safety, it is not technically diamond brackets (they came in jdk7 but mysql connector targets jdk6).

comment 9y ago · link · parent

I didn't benchmark the difference between cache usage with precalculating the hash code in a constructor vs calculation in the hash code itself but string concatenation then taking the hash code of that was the real performance killer.

comment 9y ago · link · parent

The link is right down the bottom but the GitHub page also contains the benchmark code and results which seemed more interesting https://bugs.mysql.com/bug.php?id=88021

comment 9y ago · link · parent

And 250% throughput increase with their cache when using their compound cache key which is not strictly related to server-side prepared statements.

9.

Fixing high GC pressure when MySQL driver uses server-side prepared statements(github.com ↗)

71 points · by johnou · 9y ago · 35 comments

comment 9y ago · link · parent

Thanks for the tip!

11.

Show HN: Extend and automate JIRA workflows using Groovy

2 points · by johnou · 9y ago · 2 comments