View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002044 | Open CASCADE | OCCT:Modeling Algorithms | public | 2003-03-14 13:05 | 2006-06-29 09:15 |
Reporter | Assigned To | bugmaster | |||
Priority | normal | Severity | trivial | ||
Status | closed | Resolution | fixed | ||
OS | All | ||||
Fixed in Version | 5.1.0 | ||||
Summary | 0002044: Slow work of BRepLib::EncodeRegularity() | ||||
Description | During analysis of reading step files we have found, that many time is spent for performing BRepLib::EncodeRegularity(). We believe that it is possible to accelerate this process. After changing of creation in static function tgtfaces() we receive accelaration. For example file on bm4_sd_conn_a.stp this function required 41 sec before the modifications and takes only 1 second after it. In this function there was: Handle(BRepAdaptor_HSurface) HS1 = new BRepAdaptor_HSurface(F1); During such creation BRepAdaptor_HSurface BRepAdaptor_Surface was initialised. But constructor of BRepAdaptor_Surface has a boolean key. If this key == true during initialisation method BRepTools::UVBounds() was performed. By default this value of key is used. For performing tgtfaces() results of ::UVBounds() are not used but this method is spent many time. We suggest in first create BRepAdaptor_Surface with key == false and only after that create BRepAdaptor_HSurface using created BRepAdaptor_Surface. Possible variant: BRepAdaptor_Surface aBAS1(F1,Standard_False); Handle(BRepAdaptor_HSurface) HS1 = new BRepAdaptor_HSurface(aBAS1); We want to draw attention of BUG Master that same cases of unoptimal using of adaptors may occur in other functions and methods. Our fix of file BRepLib.cxx was attached. | ||||
Tags | No tags attached. | ||||
Test case number | |||||
Date Modified | Username | Field | Change |
---|---|---|---|
2003-03-14 15:31 | bugmaster | CC | => apv |
2003-03-14 15:31 | bugmaster | Status | new => resolved |
2003-03-17 18:20 |
|
CC | => aki |
2003-03-26 12:42 |
|
Status | resolved => tested |
2003-04-07 17:40 | bugmaster | Status | tested => closed |
2003-04-07 17:40 | bugmaster | Resolution | @0@ => fixed |
2011-08-02 11:31 | bugmaster | Category | OCCT:MOA => OCCT:Modeling Algorithms |