I have a small performance problem with reading .brep files in my application.
Basically, what I observe is that both Salome and FreeCAD import my .brep files way faster than my own application built using Openacascade 6.7.1 - it takes less than 10 seconds for them while even for my simplest test application which only loads this .brep file - it takes 28 seconds. I looked at the Salome code and it seems that I use the same approach - i.e. BRepTools::read(). Additionally, Salome manages to also mesh the surface for visualization in those 10 seconds, which I don't do.
Any ideas on why this might happen? Perhaps there are some flags for building Opencascade that I am missing? I have tried building with TBB, but setting MMGT_ options to various values don't seem to change the performance of this operation.
The platform is MSVS 2013, Win 7 x64.
Thank you for any ideas,
PS: this is kind of a cross-post from Salome forum. I hope that this is ok.
The test app code is as simple as:
auto start = std::chrono::high_resolution_clock::now();
BRepTools::Read(s, "big_model.brep", b);
std::cout (std::chrono::high_resolution_clock::now() - start).count() }