diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-08-04 21:01:21 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-11-09 19:19:04 +0100 |
commit | 52d8d89f73542eb8ab3577bc55b466e7ca73bfc7 (patch) | |
tree | 9714b5af84a2a6e72f6539c381bc0c54278ad9f7 /core/pref.h | |
parent | eaf8a59edfb2aa7ec99b60de0d3c86902a73de5a (diff) | |
download | subsurface-52d8d89f73542eb8ab3577bc55b466e7ca73bfc7.tar.gz |
Mobile: optimize cylinderList() function
The cylinderList() function collects all cylinder descriptions.
Instead of adding all cylinders, then sort, then removed duplicates,
keep a sorted list and only add non-existing elements. Find
existing elements by a binary search.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/pref.h')
0 files changed, 0 insertions, 0 deletions