suyu/src
Lioncash b77430df70 apm/controller: Make SetPerformanceConfiguration() use an array of pairs over a map
While a map is an OK way to do lookups (and usually recommended in most
cases), this is a map that lives for the entire duration of the program
and only deallocates its contents when the program terminates.

Given the total size of the map is quite small, we can simply use a
std::array of pairs and utilize std::find_if to perform the same
behavior without loss of performance.

This eliminates a static constructor and places the data into the
read-only segment.

While we're at it, we can also handle malformed inputs instead of
directly dereferencing the resulting iterator.
2019-10-17 16:13:14 -04:00
..
audio_core Used revision 5 instead of 7, marked constexpr as static 2019-09-21 16:24:56 +10:00
common common/algorithm: Add description comment indicating intended algorithms 2019-10-15 15:25:23 -04:00
core apm/controller: Make SetPerformanceConfiguration() use an array of pairs over a map 2019-10-17 16:13:14 -04:00
input_common input_common/sdl/sdl_impl: Correct logging string in SDLState constructor 2019-06-03 16:56:47 -04:00
tests Core_Timing: Fix tests. 2019-10-12 07:23:08 -04:00
video_core Merge pull request #2980 from lioncash/warn 2019-10-17 14:02:16 -04:00
web_service general: Use deducation guides for std::lock_guard and std::unique_lock 2019-04-01 12:53:47 -04:00
yuzu fixed clang format & addressed feedback 2019-10-10 23:27:00 +02:00
yuzu_cmd SDL: Fix missing header 2019-10-04 18:14:11 -04:00
yuzu_tester yuzu_tester: Remove unused variable 2019-10-04 23:41:22 +00:00
.clang-format
CMakeLists.txt yuzu_tester: Add project subdirectory 2019-06-10 00:03:11 -04:00