occt: master 63cdf48e

Author Committer Branch Timestamp Parent
msv bugmaster master 2018-06-01 11:38:39 master 0a96e0bb
Affected Issues  0029830: Data Exchange, STEPCAFControl_Reader poor performance - quadratic dependence
Changeset 0029830: STEPCAFControl_Reader poor performance - quadratic dependence

Various performance improvements in STEP read/write algorithms:
- Search for the label of a shape or component shape is improved using map mechanism instead of brute force iteration.
- Invariant FindEntities() is moved out of the loop in the method getStyledItem in STEPCAFControl/STEPCAFControl_Writer.cxx.
- A pointer to the end of binders chain is added in Transfer_Binder class to speed up adding a binder to the chain.
- Small fixes are added to eliminate excess copying of handles, calls of handle DownCasts and so on.

Stack overflow is removed during destruction of STEP model with long chains of Transfer_Binder.
It is possible to use the Draw commands ReadStep and WriteStep to read/write from the session without accessing the disk file (use '.' for the file name).

Performance test cases for STEP reading/writing have been added.
mod - src/STEPCAFControl/STEPCAFControl_Reader.cxx Diff File
mod - src/STEPCAFControl/STEPCAFControl_Reader.hxx Diff File
mod - src/STEPCAFControl/STEPCAFControl_Writer.cxx Diff File
mod - src/STEPControl/STEPControl_ActorRead.cxx Diff File
mod - src/StepVisual/StepVisual_StyledItem.cxx Diff File
mod - src/StepVisual/StepVisual_StyledItem.hxx Diff File
mod - src/Transfer/Transfer_Binder.cxx Diff File
mod - src/Transfer/Transfer_Binder.hxx Diff File
mod - src/Transfer/Transfer_SimpleBinderOfTransient.cxx Diff File
mod - src/XCAFDoc/XCAFDoc_ShapeTool.cxx Diff File
mod - src/XCAFDoc/XCAFDoc_ShapeTool.hxx Diff File
mod - src/XDEDRAW/XDEDRAW_Common.cxx Diff File
mod - tests/perf/de/begin Diff File
add - tests/perf/de/bug29830_1 Diff File
add - tests/perf/de/bug29830_2 Diff File
add - tests/perf/de/bug29830_3 Diff File
add - tests/perf/de/bug29830_dir/script Diff File