dfhack/plugins/embark-assistant
bseiller 0c304cf85f Improve performance of surveying => faster search
replace the local/automatic mid_level_tiles variable in matcher::match_world_tile with one that is created once during the setup phase (heap).
The dynamic part of the contained (16*16*3 = 768) vectors is being allocated on the heap in both cases - which made the repeated instatiations of the automatic variable so slow/expensive.

Also replace calls to vector<bool>.resize in nested loops with direct assignments to those vectors, which curiously even after a lot of profiling is the fastest way to reset the inorganic vectors - at least on Windows.

- embark-assistant.cpp: Replace 2 local/automatic mid_level_tiles variables with a single dynamic variable created during setup as well; add calls to matcher::setup() and matcher::shutdown()
- matcher.cpp/.h: add state with mid_level_tiles member; add setup and shutdown functions
- survey.cpp: add function reset_mlt_inorganics as replacement for the looped calls to vector::resize as all inorganic vectors are now expected to have the proper size when entering survey::survey_mid_level_tile
2021-02-03 00:08:59 +01:00
..
CMakeLists.txt Merge branch 'develop' into cmake-cleanup 2019-07-20 19:22:33 -04:00
defs.h fixing indention/whitespaces 2021-01-19 00:07:28 +01:00
embark-assistant.cpp Improve performance of surveying => faster search 2021-02-03 00:08:59 +01:00
embark-assistant.h Add embark-assistant plugin 2017-09-01 14:13:34 +02:00
finder_ui.cpp Set min_waterfall special cases outside loop 2020-08-23 17:35:45 +00:00
finder_ui.h Added 'fileresult' optional parameter, improved world traversal 2019-09-23 13:13:04 +02:00
help_ui.cpp Corrected river size handling 2020-12-03 15:40:22 +01:00
help_ui.h Add embark-assistant plugin 2017-09-01 14:13:34 +02:00
matcher.cpp Improve performance of surveying => faster search 2021-02-03 00:08:59 +01:00
matcher.h Improve performance of surveying => faster search 2021-02-03 00:08:59 +01:00
overlay.cpp reworked aquifer bit fiddling 2020-11-14 14:43:43 +01:00
overlay.h Added 'fileresult' optional parameter, improved world traversal 2019-09-23 13:13:04 +02:00
screen.cpp Fix remaining warnings in supported plugins 2018-04-06 14:17:34 -05:00
screen.h Add embark-assistant plugin 2017-09-01 14:13:34 +02:00
survey.cpp Improve performance of surveying => faster search 2021-02-03 00:08:59 +01:00
survey.h removing 2 dead stores to speed up survey::survey_mid_level_tile 2021-01-18 19:38:57 +01:00