avoid scanning all units for a unit filter which gives a location

This adds a specialized implementation of unit filter -- if unit
filter specifies numbers for both x and y (no , - and not "recall")
then to find all matches we just find that position in the unit_map
rather than scan over all units. This happens behind the scenes.
This commit is contained in:
Chris Beck 2014-07-05 14:27:00 -04:00
parent 30276db7d3
commit 9baae9c696

View file

@ -45,8 +45,8 @@ after_failure:
- if [ "$TEST_ERROR_CODE" = 200 ]; then echo -e "\n***\n*\n* Encountered a segfault in the c++ unit test executable, attempting to get a backtrace in the remaining time...\n*\n***\n"; fi
- if [ "$TEST_ERROR_CODE" = 200 ]; then time sudo apt-get install -qq gdb; fi
- if [ "$TEST_ERROR_CODE" = 200 ]; then time gdb -q -batch -ex start -ex continue -ex bt -ex quit --args ./test; fi
- if [ "$TEST_ERROR_CODE" = 200 ]; then time scons build=debug extra_flags_debug="$EXTRA_FLAGS_RELEASE" test; fi
- if [ "$TEST_ERROR_CODE" = 200 ]; then time gdb -q -batch -ex start -ex continue -ex bt -ex quit --args ./test-debug; fi
# - if [ "$TEST_ERROR_CODE" = 200 ]; then time scons build=debug extra_flags_debug="$EXTRA_FLAGS_RELEASE" test; fi
# - if [ "$TEST_ERROR_CODE" = 200 ]; then time gdb -q -batch -ex start -ex continue -ex bt -ex quit --args ./test-debug; fi
notifications:
email: false
irc: