From: akaftasev Date: Thu, 16 Mar 2023 12:59:49 +0000 (+0300) Subject: 0033340: Modeling Algorithm - Improve memory management performance in the `PaveFiller` X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=dbbf2cd055509cad58fdd441ac5e9c7bb9a4a604;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 a0824caf24..619b626e52 100644 --- a/src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx +++ b/src/BOPAlgo/BOPAlgo_PaveFiller_6.cxx @@ -67,6 +67,7 @@ #include #include #include +#include #include #include #include @@ -483,14 +484,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),