mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 16:46:30 +08:00
Revert "Use std::stable_sort() instead of std::sort()"
Unfortunatly std::stable_sort() implementation in gcc is horrendously slow. We have a big performance regression on Linux systems (-20% !) So revert the commit and wait to fix the issue in a different way, perhaps with an our home grown sorting, that should be comparable in speed with std::sort() Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -210,7 +210,7 @@ void print_uci_options() {
|
||||
for (Options::const_iterator it = options.begin(); it != options.end(); ++it)
|
||||
vec.push_back(it->second);
|
||||
|
||||
std::stable_sort(vec.begin(), vec.end());
|
||||
std::sort(vec.begin(), vec.end());
|
||||
|
||||
for (std::vector<Option>::const_iterator it = vec.begin(); it != vec.end(); ++it)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user