1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +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

@@ -164,7 +164,7 @@ void BinTools_LocationSet::Write(Standard_OStream& OS) const
{
Standard_Integer i, nbLoc = myMap.Extent();
OS << "Locations "<< nbLoc <<endl;
OS << "Locations "<< nbLoc << "\n";
try {
OCC_CATCH_SIGNALS
for (i = 1; i <= nbLoc; i++) {

View File

@@ -321,11 +321,11 @@ void BinTools_ShapeSet::Write(Standard_OStream& OS)const
// write the copyright
if (myFormatNb == 3)
OS << "\n" << Version_3 << endl;
OS << "\n" << Version_3 << "\n";
else if (myFormatNb == 2)
OS << "\n" << Version_2 << endl;
OS << "\n" << Version_2 << "\n";
else
OS << "\n" << Version_1 << endl;
OS << "\n" << Version_1 << "\n";
//-----------------------------------------
// write the locations
@@ -1194,7 +1194,7 @@ void BinTools_ShapeSet::WritePolygonOnTriangulation(Standard_OStream& OS) const
{
Standard_Integer i, j, nbpOntri = myNodes.Extent();
OS << "PolygonOnTriangulations " << nbpOntri << endl;
OS << "PolygonOnTriangulations " << nbpOntri << "\n";
Handle(Poly_PolygonOnTriangulation) Poly;
Handle(TColStd_HArray1OfReal) Param;
try {
@@ -1293,7 +1293,7 @@ void BinTools_ShapeSet::ReadPolygonOnTriangulation(Standard_IStream& IS)
void BinTools_ShapeSet::WritePolygon3D(Standard_OStream& OS)const
{
Standard_Integer i, j, nbpol = myPolygons3D.Extent();
OS << "Polygon3D " << nbpol << endl;
OS << "Polygon3D " << nbpol << "\n";
Handle(Poly_Polygon3D) P;
try {
OCC_CATCH_SIGNALS
@@ -1396,7 +1396,7 @@ void BinTools_ShapeSet::WriteTriangulation(Standard_OStream& OS) const
{
Standard_Integer i, j, nbNodes, nbtri = myTriangulations.Extent();
Standard_Integer nbTriangles = 0, n1, n2, n3;
OS << "Triangulations " << nbtri << endl;
OS << "Triangulations " << nbtri << "\n";
Handle(Poly_Triangulation) T;
try {
OCC_CATCH_SIGNALS