DiscussionsIssue archiveData Exchange and Application Framework

Archived discussion

How to set an optimized memory manager in the VS

Data Exchange and Application FrameworkFri, 02/10/2023 - 07:483 replies

Browse this forum
QuestionAuthor

Hi.

How can I set an optimized memory manager in the Visual Studio environment?
What I tried is adding "MMGT_OPT=1" in the preprocessor definition.
But it does not make any difference in terms of performance when importing a super big STEP file (over 1GB).
Should I add something inside the codes?

Thanks!

Discussion

3 archived replies

Posts are displayed in their archived order.

01Commenter-1

Forget about this legacy memory manager - it was designed for single-threaded 32-bit applications and not much of use in modern environments.

02Commenter-2

Have you solved the problem yet?
I'm facing the same issue as you.
How to set MMGT_OPT=1? Maybe in some head file or VS setting?
I am working on OCCT version 7.8.
Thanks.

03Commenter-3

Hello, MMGT_OPT no more possible to set up. The new memory manager available as a CMake option.

Please add during CMake configuration -DUSE_MMGR_TYPE=JEMALLOC or =TBB. For that you need to have Jemalloc or TBB 3rd-party.

Best regards, Commenter-3.