19 Mar
2015
19 Mar
'15
7:55 p.m.
AMDG On 03/19/2015 01:33 PM, Stephan T. Lavavej wrote:
[STL]
(mt19937 is awesome, but at 5 KB I'd be slightly nervous about making it thread_local.)
[Steven Watanabe]
boost::mt19937 is only 2.5 KB.
Thanks - I see where the factor of 2 is coming from, although it'll need a bit more thought to untangle. I've filed a bug in our internal database.
It's quite painful. If you update the entire buffer in a single pass, you need to invert the state transition function to implement streaming correctly. libc++ only updates a single element at a time, which is noticeably slower, and last time I checked libstdc++, its output format was wrong. In Christ, Steven Watanabe