From: akaftasev Date: Fri, 3 Mar 2023 15:43:40 +0000 (+0300) Subject: 0033340: Modeling Algorithm - Improve memory management performance in the `PaveFiller` X-Git-Tag: V7_8_0~64 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=2ef94c994e1240fa9abb05d4dd4abb636d470e6c;p=occt.git 0033340: Modeling Algorithm - Improve memory management performance in the `PaveFiller` Changed NCollection_BaseAllocator to NCollection_IncAllocator in BOPAlgo_PaveFiller::MakeBlocks() --- 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),