yuzu/src/core/hle/service/aoc
Lioncash 3e7d37301a service/aoc: Avoid allocating and discarding data
Previously, the code was accumulating data into a std::vector and then
tossing all of it away if a setting was disabled.

Instead, we can just check if it's disabled and do no work at all if
possible. If it's enabled, then we can append to the vector and
allocate.

Unlikely to impact usage much, but it is slightly less sloppy with
resources.
2019-05-23 00:26:21 -04:00
..
aoc_u.cpp service/aoc: Avoid allocating and discarding data 2019-05-23 00:26:21 -04:00
aoc_u.h kernel/event: Reference ReadableEvent from WritableEvent 2018-11-29 08:48:40 -05:00