mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 10:10:33 +05:00
0023544: SMESH's performance issues
This commit is contained in:
parent
19fe2e412f
commit
a5ebdbe87e
@ -266,8 +266,13 @@ struct _RangeSet
|
|||||||
*/
|
*/
|
||||||
attr_t SetValue( int theIndex, attr_t theValue )
|
attr_t SetValue( int theIndex, attr_t theValue )
|
||||||
{
|
{
|
||||||
set_iterator rNext = mySet.upper_bound( theIndex );
|
set_iterator rNext = mySet.end(); // case of adding elements
|
||||||
set_iterator r = rNext - 1;
|
set_iterator r = rNext - 1;
|
||||||
|
if ( r->my1st > theIndex )
|
||||||
|
{
|
||||||
|
rNext = mySet.upper_bound( theIndex );
|
||||||
|
r = rNext - 1;
|
||||||
|
}
|
||||||
int rSize = Size( r ); // range size
|
int rSize = Size( r ); // range size
|
||||||
attr_t rValue = r->myValue;
|
attr_t rValue = r->myValue;
|
||||||
if ( rValue == theValue )
|
if ( rValue == theValue )
|
||||||
|
Loading…
Reference in New Issue
Block a user