yuvi
yuvi copied to clipboard
Use optimistic locking to reduce lock contention in metric store
Replace intrinsic lock and explicit ReentrantReadWriteLock with Java's implementation of optimistic readers-writer lock to improve throughput.
Remove "throws" clause where no exception is thrown. More specific checked exception type should be declared if there will be exception thrown from those functions in the future.
Avoid naming local variables in VarBitTimeSeries.deserialize() with the same name as class variable. This could cause confusion and nasty bugs.
Thanks for the patch. We are stabilizing the code this week and running some tests. So, I will merge this patch next week. If you can separate the locking change from the rest of the code, I will merge the rest of the changes first.
Sure. Sorry I've been busy these days and didn't pay much attention to my Github account. I'll separate the change and submit PR after I come back from my vacation next week, thanks!