suyu/src/core/hle/service/filesystem
Lioncash 4afb05d0cc fsp_srv: Emplace entries first when building index instead of emplacing last
The current way were doing it would require copying a 768 character
buffer (part of the Entry struct) to the new element in the vector.
Given it's a plain array, std::move won't eliminate that.

Instead, we can emplace an instance directly into the destination buffer
and then fill it out, avoiding the need to perform any unnecessary
copies.

Given this is done in a loop, we can request the destination to allocate
all of the necessary memory ahead of time, avoiding the need to
potentially keep reallocating over and over on every few insertions into
the vector.
2018-08-08 18:51:41 -04:00
..
filesystem.cpp service/filesystem: Add fsp:ldr and fsp:pr services 2018-08-01 17:01:29 -04:00
filesystem.h Virtual Filesystem 2: Electric Boogaloo (#676) 2018-07-18 18:07:11 -07:00
fsp_ldr.cpp service: Remove redundant #pragma once directives 2018-08-04 17:39:08 -04:00
fsp_ldr.h service/filesystem: Add fsp:ldr and fsp:pr services 2018-08-01 17:01:29 -04:00
fsp_pr.cpp service: Remove redundant #pragma once directives 2018-08-04 17:39:08 -04:00
fsp_pr.h service/filesystem: Add fsp:ldr and fsp:pr services 2018-08-01 17:01:29 -04:00
fsp_srv.cpp fsp_srv: Emplace entries first when building index instead of emplacing last 2018-08-08 18:51:41 -04:00
fsp_srv.h Virtual Filesystem 2: Electric Boogaloo (#676) 2018-07-18 18:07:11 -07:00