mirror of
https://github.com/intel/compute-runtime.git
synced 2025-11-15 10:14:56 +08:00
Historically, FileLogger was intended to work with scalar types. Therefore, its member functions utilized parameter packs, which copied the arguments. However, some time ago std::strings had started to be passed to this function. The recursion was performing multiple copies of the same std::string, which could cause unneeded memory allocations. This change: - replaces copying with const references - applies std::move() operator if possible - replaces std::unique_lock with std::lock_guard Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>