DiscussionsIssue archiveOCCT:Application Framework

Archived issue #0026981

Application Framework - read a BinOcaf document from С++ stream sequentially

Open CASCADEOCCT:Application Frameworkclosed10 public notes

Search issues

Description

The last implementation of reading of BinOcaf document uses SEEK functionality. There is the need to read the document sequentially, without using of seek.

Steps to reproduce

Not required

Public activity

10 archived notes

Participants are labeled by their role within this record.

01Commenter 1
Branch [archived branch] has been created by Author.

[revision removed]


Detailed log of new commits:

Author: Author
Date: Thu Dec 3 14:19:32 2015 +0300

02Commenter 2
test "bugs caf bug1454" consumes up to 8gb RAM during reading of 80 000 sub-labels due to allocation of a personal BinObjMgt_Persistent for each document label to maintain consequential reading.

03Commenter 1
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
04Commenter 1
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
05Commenter 1
Branch [archived branch] has been updated forcibly by Participant.

[revision removed]
06Commenter 6
OCCT - CR26981_1
PRODUCTS - master

The current version of the document supports partial reading. So, as a result, the shapes section is dispersed into attributes and it becomes easy avoid any seekg call during the reading.
But this will work only in case whole document is opened. For partial reading seekg functions will be naturally called.
07Commenter 7
08Commenter 8
Combination -
OCCT branch : [archived branch]
master SHA - [revision removed]
[revision removed]
Products branch : [archived branch] SHA - [revision removed]
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.

Number of compiler warnings:
No new/fixed warnings

Regressions/Differences/Improvements:
No regressions/differences

CPU differences:
Debian80-64:
OCCT
Total CPU difference: 17750.01000000046 / 17700.080000000395 [+0.28%]
Products
Total CPU difference: 11624.980000000118 / 11665.940000000111 [-0.35%]
Windows-64-VC14:
OCCT
---
Products
---


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention
09Commenter 1
Branch [archived branch] has been deleted by Commenter 2.

[revision removed]
10Commenter 1
Branch [archived branch] has been deleted by Commenter 2.

[revision removed]