You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uuid() (which is used to set requests ids) can be quite slow because of
golang/go#22614
essentially access to /dev/urandom has to be serialized, and when everyone is piling in,
the cost of assigning a request id is (measured) 3.5% of the whole execution time!
This change makes the access to /dev/urandom asynchronous, reading in 32k chunks (one read
every 4k requests), which eliminates the cost completely.
It has been used in anger, at a rate of 50k requests/second, and it has not misbehaved.
Change-Id: I47e524ef11344aadafff770444f214093fe6e008
Reviewed-on: http://review.couchbase.org/98891
Reviewed-by: Sitaram Vemulapalli <[email protected]>
Reviewed-by: Johan Larson <[email protected]>
Tested-by: Marco Greco <[email protected]>
0 commit comments