pythonocc-core icon indicating copy to clipboard operation
pythonocc-core copied to clipboard

STEPCAFControl_Reader().Transfer() taking too long to execute

Open Sadiq-Naizam opened this issue 3 years ago • 5 comments

So Im trying to convert a STEP file to XDE Document. The file size is around 115MB. It takes around 90 seconds to execute the STEPCAFControl_Reader().transfer() function. But it doesnt take this long when I tried the same using FreeCAD or other open source CAD softwares that uses OCC.

My device spec is : RAM : 16GB Processor: Intel(R) Core(TM) i7-10875H @ 2.30GHZ (16 CPUs) NVIDIA GeForce RTX 2080 Super VRAM : 8GB

Also i noticed that python isnt taking advantage of my CPU. Is this because of the Global Interpreter Lock? the transfer() function is implemented in C++ right, so it shouldn't be affected by GIL right?

Sadiq-Naizam avatar Dec 09 '21 06:12 Sadiq-Naizam

I also meet this same problem.

zeroright avatar Dec 09 '21 07:12 zeroright

How long does it take on FreeCAD compared to pythonocc? They both use the same API, there should not be any big difference in terms of performance. Which version of pythonocc do you use?

tpaviot avatar Dec 15 '21 05:12 tpaviot

@tpaviot The model loads up under 30 - 45 sec on FreeCAD. I'm using version 7.5.1 of pythonocc. But it takes between 75-90 seconds to convert from STEP to XDE on pythonocc. Is this the expected time for converting a 115MB file? Thanks

Sadiq-Naizam avatar Dec 15 '21 05:12 Sadiq-Naizam

Same here. I just tested OCC 7.6.2 (c++) and there is no improvement if compared with 7.1. I thought the issue is addressed https://tracker.dev.opencascade.org/view.php?id=29830

roosre avatar Jun 29 '22 15:06 roosre