summaryrefslogtreecommitdiff
path: root/src/core/telemetry_session.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2019-05-23 00:26:17 -0400
committerGravatar Lioncash2019-05-23 00:26:21 -0400
commit3e7d37301a4c3ce68f0f20e702b35e97656108fc (patch)
treed39f7df32474e3561676d47ed5eb19996c52359d /src/core/telemetry_session.cpp
parentservice/aoc: Remove unnecessary includes (diff)
downloadyuzu-3e7d37301a4c3ce68f0f20e702b35e97656108fc.tar.gz
yuzu-3e7d37301a4c3ce68f0f20e702b35e97656108fc.tar.xz
yuzu-3e7d37301a4c3ce68f0f20e702b35e97656108fc.zip
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.
Diffstat (limited to 'src/core/telemetry_session.cpp')
0 files changed, 0 insertions, 0 deletions