DiscussionsIssue archiveOCCT:Foundation Classes

Archived issue #0033537

Foundation Classes - Base vector of pointers improvement

Open CASCADEOCCT:Foundation Classesverified6 public notes

Search issues

Description

Need to avoid of using TCollection map size and use pow of 2.
Additionally, need to use operation resize instead of free and allocate

Public activity

6 archived notes

Participants are labeled by their role within this record.

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

[revision removed]


Detailed log of new commits:

Author: Author
Date: Fri Nov 24 02:09:45 2023 +0000

    0033537: Foundation Classes - Base vector of pointers improvement
    
    Updated NCollection_BasePointerVector to allocate
      and use small block instead of 101 as minimum.
    Operation reallocate used to avoid additional copy operations.
02Author
Dear IKA, please varify CR33537

There is a minor update to avoid 101 element allocation. 101 - 1001 - 2002 ...
03Commenter 3
Dear Author,

+ else
+ {
+ myCapacity = myCapacity * 2;
+ }

may be you should think about << in this case?

+ while (myCapacity < theInd)
+ {
+ myCapacity * 2;
+ }
'=' missed
04Commenter 2
Branch [archived branch] has been updated forcibly by Author.

[revision removed]
05Author
Dear Commenter 1, please close.
Already merged into [archived branch] as a part of CR0-780
06Commenter 2
Branch [archived branch] has been deleted by Commenter 4.

[revision removed]