-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpenFileGDB writer: reserve arrays with an exponential strategy
Hopefully this should fix Coverity warning: ``` CID 1502589 (#4 of 4): Inefficient vector resizing with reserve. (INEFFICIENT_RESERVE) 1. inefficient_reserve: A std::vector has its capacity adjusted with reserve() in a manner that is likely to have severe performance penalties. To avoid a quadratic time penalty when using reserve(), always increase the capacity by a multiple of its current value ```
- Loading branch information
Showing
1 changed file
with
28 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters