[Interest] [External]Re: How to get QtConcurrent to do what I want?

Murphy, Sean Sean.Murphy at centauricorp.com
Tue Feb 1 20:12:29 CET 2022


> On Tuesday, 1 February 2022 08:30:52 PST Murphy, Sean wrote:
> > I just made that switch - removed the QRandomGenerator member
> variable
> > From the tile class, and calling
> > QRandomGenerator::global()->bounded(min,
> > max). Now creating  + assigning each tile plummeted from 18 seconds to
> > 15 milliseconds.
> 
> Unfortunately, QRNG has now as ABI requirement that it uses the Mersenne
> twister. That means it's 624 * 4 bytes in size (plus overhead) and must seed
> that thing, which is non-trivial math.

So if I understand you correctly, instantiating 60,000 of them when you really 
only need one would be considered Not Advised?!?!

Sean


More information about the Interest mailing list