diff options
author | Julien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr> | 2017-08-23 20:40:11 +0200 |
---|---|---|
committer | Julien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr> | 2017-08-23 23:31:28 +0200 |
commit | 96a6529e2ef4a75a1232d42a13552599d7fb6e28 (patch) | |
tree | 1ae167f65210e2b00eb53c08841209619ef03155 /export/wscript | |
parent | cc63df7e8d7e7f1ed255773398ff30c23205153c (diff) |
Improve getting a Bundle total channel count
|Bundle::nchannels()| creates a ChanCount on demand, by iterating over
the |_channel| member variable. The sum of all |nchannels().n(t)| over
all non-NIL DataTypes |t| is thus equal to |_channel.size()|.
Consequently, calling |nchannels().n_total()| is a convoluted (and slow)
way of getting |_channel.size()|. Add a method |Bundle::n_total()| that
directly returns the latter.
Diffstat (limited to 'export/wscript')
0 files changed, 0 insertions, 0 deletions