MantisBT - Community
View Issue Details
0024024Community[OCCT] OCCT:Data Exchangepublic2013-06-11 11:342014-11-11 12:58
eed_spp 
apn 
normalminor 
closedreopened 
IntelWindowsXP, Win7
[OCCT] 6.6.0 
[OCCT] 6.8.0[OCCT] 6.8.0 
bugs step bug24024
0024024: Slow import of specific STEP data
Import of attached STEP file is performed very slowly. Scene is quite simple, but sample program "Import Export" (supplied in OCCT installation package) loads this file during 15 minutes (on Core2Duo 2.66GHz). Import using OCCT API also takes similar time.

Is it possible to speed-up the loading of such scenes by OCCT? May be some workaround exists?
No tags attached.
zip slow_import.zip (550,559) 2013-06-11 11:34
https://tracker.dev.opencascade.org/
Issue History
2013-06-11 11:34eed_sppNew Issue
2013-06-11 11:34eed_sppAssigned To => gka
2013-06-11 11:34eed_sppFile Added: slow_import.zip
2014-01-29 15:39bugmasterNote Added: 0027682
2014-01-29 15:39bugmasterAssigned Togka => apn
2014-01-29 15:39bugmasterStatusnew => resolved
2014-01-30 12:34apnNote Added: 0027703
2014-01-30 12:35apnTest case number => bugs step bug24024
2014-01-30 12:35apnAssigned Toapn => bugmaster
2014-01-30 12:35apnStatusresolved => reviewed
2014-01-30 12:35apnFixed in Version => 6.7.0
2014-01-30 12:35apnTarget Version => 6.7.0
2014-01-30 12:35apnStatusreviewed => tested
2014-02-03 10:15bugmasterChangeset attached => occt master e226a506
2014-02-03 10:15bugmasterStatustested => verified
2014-02-03 10:15bugmasterResolutionopen => fixed
2014-03-11 11:01eed_sppNote Added: 0028189
2014-03-11 11:01eed_sppStatusverified => feedback
2014-03-11 11:01eed_sppResolutionfixed => reopened
2014-03-11 11:06eed_sppNote Edited: 0028189bug_revision_view_page.php?bugnote_id=28189#r6928
2014-03-12 12:11apnNote Added: 0028216
2014-03-12 12:11apnAssigned Tobugmaster => gka
2014-03-12 12:11apnStatusfeedback => assigned
2014-04-07 10:44apnTarget Version6.7.0 => 6.8.0
2014-04-07 10:45apnNote Edited: 0028216bug_revision_view_page.php?bugnote_id=28216#r7156
2014-04-07 10:46apnNote Edited: 0028216bug_revision_view_page.php?bugnote_id=28216#r7157
2014-04-18 15:47gkaAssigned Togka => ika
2014-05-13 17:38ikaNote Added: 0029308
2014-05-13 17:38ikaAssigned Toika => gka
2014-05-13 17:38ikaStatusassigned => resolved
2014-05-16 12:36gkaNote Added: 0029368
2014-05-16 12:36gkaStatusresolved => reviewed
2014-05-19 16:00apvNote Added: 0029393
2014-05-19 16:00apvAssigned Togka => bugmaster
2014-05-19 16:00apvStatusreviewed => tested
2014-05-19 16:03apvNote Edited: 0029393bug_revision_view_page.php?bugnote_id=29393#r7489
2014-05-19 16:04apvNote Edited: 0029393bug_revision_view_page.php?bugnote_id=29393#r7490
2014-05-19 16:04apvNote Edited: 0029393bug_revision_view_page.php?bugnote_id=29393#r7491
2014-05-19 16:15gkaNote Added: 0029394
2014-05-19 16:34apnNote Added: 0029395
2014-05-23 14:25apnChangeset attached => occt master 1ee621b6
2014-05-23 14:25apnAssigned Tobugmaster => apn
2014-05-23 14:25apnStatustested => verified
2014-09-12 19:38abvRelationship addedhas duplicate 0024702
2014-11-11 12:45aivFixed in Version6.7.0 => 6.8.0
2014-11-11 12:58aivStatusverified => closed

Notes
(0027682)
bugmaster   
2014-01-29 15:39   
The problem was fixed
The shape is read for 4 minutes.
Creation of testing case is required
(0027703)
apn   
2014-01-30 12:34   
Problem is not reproduced on current state of master. Branch CR24024 (contains testing case) was created.

Testing case:
bugs step bug24024 - OK.
(0028189)
eed_spp   
2014-03-11 11:01   
(edited on: 2014-03-11 11:06)
Version 6.7.0 (where this seems should be fixed already) imports this file with almost the same speed: in 6.6.0 import time is 14:50, in 6.7.0 it is 14:00. Is it eventually possible to speed up it?

(0028216)
apn   
2014-03-12 12:11   
(edited on: 2014-04-07 10:46)
Import time of slow_import.stp in ImportExport MFC SAMPLE is 11-12 minutes (AMD Athlon II X4 630 2.80 GHz).

But loading this file on OCCT 6.7.0 import time is 5 or 6 minutes (test case bugs step bug24024).

(0029308)
ika   
2014-05-13 17:38   
Add bounding boxes to accelerate import, now it is nearly 1 minute.

Branch CR24024 is ready to be reviewed.
Dear GKA,
Please review.
(0029368)
gka   
2014-05-16 12:36   
Branch CR24024 is ready to test
(0029393)
apv   
2014-05-19 16:00   
(edited on: 2014-05-19 16:04)
Dear BugMaster,

 Branch CR24024 (and products from GIT master) was compiled on Linux, MacOS and Windows platforms and tested.
 SHA-1: a7e350627579284c136209b8ace4d4ee5b52a243

 Number of compiler warnings:

 occt component :
 Linux: 17 (17 on master)
 Windows: 0 (0 on master)
 MacOS: 202 (205 on master)

 products component :
 Linux: 11 (11 on master)
 Windows: 2 (2 on master)

 Regressions/Differences:
No regressions

 Testing cases:
http://occt-tests/CR24024-master-occt/Debian60-64/bugs/step/bug24024.html [^] [^]
http://occt-tests/CR24024-master-occt/Windows-32-VC9/bugs/step/bug24024.html [^] [^]
 bugs step(014) bug24024: OK

 Testing on Linux:
Total MEMORY difference: 356861760 / 357326856
Total CPU difference: 54567.95000000008 / 56363.43999999993

 Testing on Windows:
Total MEMORY difference: 379931840 / 379589220
Total CPU difference: 40509.0 / 35503.40625

(0029394)
gka   
2014-05-19 16:15   
Please provide comparison of times of import this STEP file before and after fix.
(0029395)
apn   
2014-05-19 16:34   
test bugs step bug24024

Before fix:
Linux:
Elapsed time: 0 Hours 0 Minutes 57.484599 Seconds
CPU user time: 56.8 seconds
CPU system time: 0.22 seconds

Windows:
Elapsed time: 0 Hours 1 Minutes 44.6584481001 Seconds
CPU user time: 94.2402041 seconds
CPU system time: 0.3744024 seconds

After fix:
Linux:
Elapsed time: 0 Hours 0 Minutes 12.271586 Seconds
CPU user time: 11.68 seconds
CPU system time: 0.09 seconds

Windows:
Elapsed time: 0 Hours 0 Minutes 21.2441968664 Seconds
CPU user time: 18.2677171 seconds
CPU system time: 0.2964019 seconds