DiscussionsIssue archiveData Exchange and Application Framework

Archived discussion

Read different BREP file in different thread

Data Exchange and Application FrameworkSat, 06/25/2022 - 12:331 reply

Browse this forum
QuestionAuthor

Hi everyone,
There are about a few thousand file in my project.They are all very small, about 20Kb.
So i use 4 threads to read these files.
I was also shocked that the read speed didn't change.

During debugging, I randomly interrupt the program and find that each thread is executing the BRepTools::read() function at different stages.
Can someone please tell me why this?
At least I verified the thread safety of this function. :)

Thanks for any help.

Discussion

1 archived reply

Posts are displayed in their archived order.

01Commenter-1

So i use 4 threads to read these files.
I was also shocked that the read speed didn't change.

Why would you expect reading speed to be changed? Never heard about HDD or SSD drives that could show more speed by using multiple CPU threads - for that your files should be placed at different physical drives.