Creating or opening a std::random_device incurs an overhead one can see in profiling (about 7% on OS X; on Linux and OS X, this causes a call to open()).
Details
Details
- Reviewers
dkazakov - Group Reviewers
Krita - Commits
- R37:2f56a165d196: Cache std::random_device
R37:932e9f647cbb: Cache std::random_device
Diff Detail
Diff Detail
- Repository
- R37 Krita
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
The patch looks fine. Perhaps we could also use some simpler random engine... Though I have no knowledge of that :)
Comment Actions
Hi, @poke1024!
Could you send me you email so I could push the patch under you name? To dimula73 at gmail dot com