Diffusion Krita 2f56a165d196

Cache std::random_device

Authored by poke1024 on Sep 22 2017, 9:34 PM.

Description

Cache std::random_device

Summary: 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()).

Reviewers: Krita, dkazakov

Reviewed By: Krita, dkazakov

Subscribers: dkazakov

Differential Revision: https://phabricator.kde.org/D7895

Details

Committed
dkazakovSep 25 2017, 12:32 PM
Reviewer
Krita
Differential Revision
D7895: Cache std::random_device
Parents
R37:3e44db5b8107: Follow changes to KoMimeDataBase api
Branches
Unknown
Tags
Unknown