1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

0026922: Huge performance issue writing data to the output stream

Test case for issue CR26922

Correction of literal (char to string)
This commit is contained in:
mgn
2015-12-02 16:39:55 +03:00
committed by bugmaster
parent cc6852f3e9
commit 586db386eb
183 changed files with 3221 additions and 3181 deletions

View File

@@ -543,7 +543,7 @@ void BRepTools_ShapeSet::DumpGeometry(const TopoDS_Shape& S,
OS << " on triangulation " << myTriangulations.FindIndex(CR->Triangulation());
if (!CR->Location().IsIdentity())
OS << " location "<<Locations().Index(CR->Location());
OS << endl;
OS << "\n";
}
itrc.Next();
}
@@ -1240,7 +1240,7 @@ void BRepTools_ShapeSet::WritePolygonOnTriangulation(Standard_OStream& OS,
Handle(Message_ProgressIndicator) progress = GetProgress();
Message_ProgressSentry PS(progress, "Polygons On Triangulation", 0, nbpOntri, 1);
if (Compact)
OS << "PolygonOnTriangulations " << nbpOntri << endl;
OS << "PolygonOnTriangulations " << nbpOntri << "\n";
else {
OS << " -------\n";
OS <<"Dump of " << nbpOntri << " PolygonOnTriangulations\n";
@@ -1271,7 +1271,7 @@ void BRepTools_ShapeSet::WritePolygonOnTriangulation(Standard_OStream& OS,
if (!Param.IsNull()) {
if (!Compact) {
OS << " "<< "Parameters :";
OS << " Parameters :";
}
else OS << "1 " ;
if (!Compact) OS <<" ";
@@ -1360,7 +1360,7 @@ void BRepTools_ShapeSet::WritePolygon3D(Standard_OStream& OS,
Message_ProgressSentry PS(progress, "3D Poligons", 0, nbpol, 1);
if (Compact)
OS << "Polygon3D " << nbpol << endl;
OS << "Polygon3D " << nbpol << "\n";
else {
OS << " -------\n";
OS <<"Dump of " << nbpol << " Polygon3Ds\n";
@@ -1484,7 +1484,7 @@ void BRepTools_ShapeSet::WriteTriangulation(Standard_OStream& OS,
Message_ProgressSentry PS(progress, "Triangulations", 0, nbtri, 1);
if (Compact)
OS << "Triangulations " << nbtri << endl;
OS << "Triangulations " << nbtri << "\n";
else {
OS << " -------\n";
OS <<"Dump of " << nbtri << " Triangulations\n";