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

how to read step faster

Open 1997coda opened this issue 2 years ago • 6 comments

an example at https://github.com/dblanding/kodacad @dblanding

i try to open a 20MB stp file, it cost about 50s and using threading cannot shorter that time.

Are there any known algorithms that can improve this reading speed?

Thank you very much for your great contributions

1997coda avatar Sep 12 '23 16:09 1997coda

stepanalyzer.txt and his step read code

1997coda avatar Sep 12 '23 16:09 1997coda

I'm sorry cadazq, but I don't have a way to make the read proceed more quickly. Have you tried opening your step file with Cad_Assistant? One thing you might try is first loading your step file into Cad_Assistant, then saving it back again (either in AP-214 or AP-203), then try loading the newly saved file to see if that makes it load more quickly.

dblanding avatar Sep 12 '23 17:09 dblanding

I'm sorry cadazq, but I don't have a way to make the read proceed more quickly. Have you tried opening your step file with Cad_Assistant? One thing you might try is first loading your step file into Cad_Assistant, then saving it back again (either in AP-214 or AP-203), then try loading the newly saved file to see if that makes it load more quickly.

very thanks for reply. CAD Assistant work really fast. it count 16s to open a same stp. i just wondering how to make it happen.:)

1997coda avatar Sep 12 '23 17:09 1997coda

I'm sorry cadazq, but I don't have a way to make the read proceed more quickly. Have you tried opening your step file with Cad_Assistant? One thing you might try is first loading your step file into Cad_Assistant, then saving it back again (either in AP-214 or AP-203), then try loading the newly saved file to see if that makes it load more quickly.

really cool. it cost 28s after i loading & saving. more curious...

1997coda avatar Sep 12 '23 18:09 1997coda

CAD Assistant is built on opencascade as well. I think there should be some kind of multitask optimizations at CAD Assitant.

tpaviot avatar Sep 22 '23 12:09 tpaviot