mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-23 12:35:42 +08:00
1. Disable recalculation of B-spline cache when the parameter is out of surface boundary but near the cached span. 2. Rebuild cache each time a curve/surface is loaded into adaptor (B-spline knots may be re-parametrized outside adaptor without changing base curve) 3. Test cases.
29 lines
735 B
Plaintext
29 lines
735 B
Plaintext
puts "============"
|
|
puts "OCC27048"
|
|
puts "============"
|
|
puts ""
|
|
############################################################################
|
|
# Recalculation of BSpline cache causes a performance problems
|
|
############################################################################
|
|
|
|
pload XSDRAW
|
|
|
|
dchrono t reset
|
|
dchrono t start
|
|
testreadstep [locate_data_file bug27048.stp] result
|
|
dchrono t stop
|
|
set elapsed [dchrono t show]
|
|
|
|
regexp {CPU user time: ([-0-9.+eE]+) seconds} $elapsed full cpu_time
|
|
set max_time 40
|
|
|
|
if { $cpu_time > ${max_time} } {
|
|
puts "Error: reading document Doc is too long (greater than ${max_time} sec)"
|
|
} else {
|
|
puts "OK: performance reading document Doc is suitable"
|
|
}
|
|
|
|
smallview
|
|
fit
|
|
set only_screen_axo 1
|