Homec4science
Diffusion YCSB 29ddcf4b75cd

Remove synchronization points from random number generation. This mostly…

Authored by Russell Sears <sears@yahoo-inc.com> on Nov 20 2011, 01:49.

Description

Remove synchronization points from random number generation. This mostly consisted switching from per-class instances of Random() that are shared amongst threads to thread-local instances shared across classes.

Also, CounterGenerator.nextInt() was synchronized. Changed it to use an AtomicInteger.

Finally, removed lastString() from Generator, as it was only called in places where lastInt() was more appropriate; switched the calls to lastInt().

Details

Committed
Russell Sears <sears@yahoo-inc.com>Nov 20 2011, 01:49
Pushed
iorgulescuOct 2 2018, 18:02
Parents
R7507:af9570f7cbf5: Merge branch 'master' of github.com:sears/YCSB into ImprovedRNG
Branches
Unknown
Tags
Unknown

Event Timeline

Russell Sears <sears@yahoo-inc.com> committed R7507:29ddcf4b75cd: Remove synchronization points from random number generation. This mostly… (authored by Russell Sears <sears@yahoo-inc.com>).Nov 20 2011, 01:49