mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-08 15:17:27 +05:00
0020463: EDF 1099 SMESH: performance regression from V4 to V5
Patch from Erwan ADAM.
This commit is contained in:
parent
0b8910a8fd
commit
da675994d2
@ -923,7 +923,30 @@ void SMESH_Gen_i::UpdateParameters(CORBA::Object_ptr theObject, const char* theP
|
|||||||
if(!hasAttr)
|
if(!hasAttr)
|
||||||
aNewParams = anInputParams;
|
aNewParams = anInputParams;
|
||||||
else
|
else
|
||||||
aNewParams = aOldParameters+"|"+anInputParams;
|
{
|
||||||
|
int pos = aOldParameters.SearchFromEnd("|");
|
||||||
|
if(pos==-1) pos = 0;
|
||||||
|
TCollection_AsciiString previousParamFull(aOldParameters.Split(pos));
|
||||||
|
TCollection_AsciiString previousParam(previousParamFull);
|
||||||
|
TCollection_AsciiString theRepet("1");
|
||||||
|
pos = previousParam.SearchFromEnd(";*=");
|
||||||
|
if(pos >= 0)
|
||||||
|
{
|
||||||
|
theRepet = previousParam.Split(pos+2);
|
||||||
|
pos = pos-1;
|
||||||
|
if(pos==-1) pos = 0;
|
||||||
|
previousParam.Split(pos);
|
||||||
|
}
|
||||||
|
if(previousParam == anInputParams)
|
||||||
|
{
|
||||||
|
theRepet = theRepet.IntegerValue()+1;
|
||||||
|
aNewParams = aOldParameters + previousParam + ";*=" + theRepet;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
aNewParams = aOldParameters + previousParamFull + "|" + anInputParams;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(VARIABLE_DEBUG)
|
if(VARIABLE_DEBUG)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user