diff options
author | David Robillard <d@drobilla.net> | 2007-06-29 06:58:07 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-06-29 06:58:07 +0000 |
commit | eb296b2c957f574334fae2aefd8b863cf7631769 (patch) | |
tree | 57a546f8c61a81b7088b23b9fcd92a5b9d578e9f /libs/ardour/ardour/port_set.h | |
parent | 44867662a3d020e042714d1c5e948b8c3afea941 (diff) |
Reduce overhead of multi-type-ness (last Summer's SoC):
Use uint32_t instead of size_t counts (halves size of ChanCount on 64-bit).
Shift DataType values down to eliminate subtraction every index of a ChanCount or *Set.
Allow using DataType directly as an array index (prettier/terser).
Fix some mixed spaces/tabs in file comment headers.
git-svn-id: svn://localhost/ardour2/trunk@2082 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/port_set.h')
-rw-r--r-- | libs/ardour/ardour/port_set.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/ardour/port_set.h b/libs/ardour/ardour/port_set.h index 947730a5b9..51673472c3 100644 --- a/libs/ardour/ardour/port_set.h +++ b/libs/ardour/ardour/port_set.h @@ -39,7 +39,7 @@ public: PortSet(); size_t num_ports() const; - size_t num_ports(DataType type) const { return _ports[type.to_index()].size(); } + size_t num_ports(DataType type) const { return _ports[type].size(); } void add(Port* port); bool remove(Port* port); |