aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/program_metadata.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-05-23 00:26:17 -0400
committerLioncash <mathew1800@gmail.com>2019-05-23 00:26:21 -0400
commit36df21b48e991b9988e7fd5b2e787037ddf9d5ae (patch)
treed39f7df32474e3561676d47ed5eb19996c52359d /src/core/file_sys/program_metadata.cpp
parent77443d3e04d253fb211d66e29ae5eab27bda33b4 (diff)
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/file_sys/program_metadata.cpp')
0 files changed, 0 insertions, 0 deletions