diff options
author | Lioncash <mathew1800@gmail.com> | 2019-05-23 00:26:17 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-05-23 00:26:21 -0400 |
commit | 3e7d37301a4c3ce68f0f20e702b35e97656108fc (patch) | |
tree | d39f7df32474e3561676d47ed5eb19996c52359d /src/core/telemetry_session.h | |
parent | d0e200a894cac4a1aec7d64326c11e4f2eca5c3d (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/telemetry_session.h')
0 files changed, 0 insertions, 0 deletions