]> git.mxchange.org Git - flightgear.git/commit
Performance optimization: empty() instead of size()>0
authorTom Paoletti <zommaso@gmail.com>
Fri, 22 Mar 2013 02:43:14 +0000 (19:43 -0700)
committerJames Turner <zakalawe@mac.com>
Mon, 19 Aug 2013 08:02:15 +0000 (09:02 +0100)
commitb27eb2571c2e87d1e43a6ee4e47aea066fc47f02
treef5fc757d855fdbcf896a0ed56c9477e3a1fbb16c
parent1f88d1d11be00ed9c8c3760bc0daa18350df5d7a
Performance optimization: empty() instead of size()>0

empty() is guaranteed to be constant complexity for both vectors and lists, while size() has linear complexity for lists.
src/Scripting/NasalSys.cxx