From 2ef94c994e1240fa9abb05d4dd4abb636d470e6c Mon Sep 17 00:00:00 2001 From: akaftasev Date: Fri, 3 Mar 2023 18:43:40 +0300 Subject: [PATCH] 0033340: Modeling Algorithm - Improve memory management performance in the `PaveFiller` Changed NCollection_BaseAllocator to NCollection_IncAllocator in BOPAlgo_PaveFiller::MakeBlocks() --- src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx b/src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx index a4e454665d..68fc9e9e97 100644 --- a/src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx +++ b/src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx @@ -62,6 +62,7 @@ #include #include #include +#include #include #include #include @@ -578,14 +579,12 @@ void BOPAlgo_PaveFiller::MakeBlocks(const Message_ProgressRange& theRange) Standard_Integer i, nF1, nF2, aNbC, aNbP, j; Standard_Integer nV1, nV2; Standard_Real aT1, aT2; - Handle(NCollection_BaseAllocator) aAllocator; + Handle(NCollection_BaseAllocator) aAllocator = new NCollection_IncAllocator; BOPDS_ListIteratorOfListOfPaveBlock aItLPB; TopoDS_Edge aES; Handle(BOPDS_PaveBlock) aPBOut; // //-----------------------------------------------------scope f - aAllocator= - NCollection_BaseAllocator::CommonBaseAllocator(); // TColStd_ListOfInteger aLSE(aAllocator), aLBV(aAllocator); TColStd_MapOfInteger aMVOnIn(100, aAllocator), aMVCommon(100, aAllocator),