This commit is contained in:
Niko Savola 2026-06-10 18:58:08 +09:00 committed by GitHub
commit 8d790fb23c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 1 deletions

View File

@ -43,6 +43,14 @@
#include "dbLayoutToNetlist.h"
#include <sstream>
#include <algorithm>
#if defined(__cpp_lib_execution)
#include <execution>
#define PARALLEL_EXEC_POLICY std::execution::par,
#else
#define PARALLEL_EXEC_POLICY
#endif
namespace db
{
@ -440,7 +448,7 @@ void AsIfFlatRegion::merge_polygons_to (db::Shapes &output, bool min_coherence,
addressable_polygons.inc ();
}
std::sort (polygons_by_prop_id.begin (), polygons_by_prop_id.end (), ComparePolygonsWithProperties ());
std::sort (PARALLEL_EXEC_POLICY polygons_by_prop_id.begin (), polygons_by_prop_id.end (), ComparePolygonsWithProperties ());
for (auto p = polygons_by_prop_id.begin (); p != polygons_by_prop_id.end (); ) {