diff options
author | David Robillard <d@drobilla.net> | 2010-12-15 20:10:41 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-15 20:10:41 +0000 |
commit | f4f74f3316b474096f164aa33c9d2e8965a545c3 (patch) | |
tree | 49ed4402f138d17592d7a33a35fde7232f799bff /src/JackDriver.hpp | |
parent | aea13cac2a4106bbca28fc062d60e18ca4990c6c (diff) | |
download | patchage-f4f74f3316b474096f164aa33c9d2e8965a545c3.tar.gz patchage-f4f74f3316b474096f164aa33c9d2e8965a545c3.tar.bz2 patchage-f4f74f3316b474096f164aa33c9d2e8965a545c3.zip |
Improve performance for setups with many apps or ports.
(Eliminate all linear searches for items, except one case for Jack
ports which is unavoidable due to the Jack API, but is memoized,
so each port will only be searched for once between refreshes).
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2712 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/JackDriver.hpp')
-rw-r--r-- | src/JackDriver.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/JackDriver.hpp b/src/JackDriver.hpp index b9fb4f4..9dbcd7b 100644 --- a/src/JackDriver.hpp +++ b/src/JackDriver.hpp @@ -80,8 +80,9 @@ public: private: boost::shared_ptr<PatchagePort> create_port( - boost::shared_ptr<PatchageModule> parent, - jack_port_t* port); + boost::shared_ptr<PatchageModule> parent, + jack_port_t* port, + PortID id); static void error_cb(const char* msg); |