diff options
| author | Scott Lagler <laglerscott@gmail.com> | 2025-12-12 19:20:21 -0500 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2025-12-16 17:45:24 -0500 |
| commit | 6138978808829172448615980742756831959788 (patch) | |
| tree | 746bb0a634c139967c1755dcbcfb8c3395b97ff5 /unicode.cpp | |
| parent | 3967000448807875468673398445854536525610 (diff) | |
Add more reserve calls
Diffstat (limited to 'unicode.cpp')
| -rw-r--r-- | unicode.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unicode.cpp b/unicode.cpp index 127521be..9285269c 100644 --- a/unicode.cpp +++ b/unicode.cpp @@ -64,6 +64,7 @@ std::vector<std::vector<std::pair<uint32_t, uint32_t>>> BinaryNinja::Unicode::Ge for (size_t i = 0; i < blockListCounts; i ++) { std::vector<std::pair<uint32_t, uint32_t>> blockList; + blockList.reserve(blockCounts[i]); for (size_t j = 0; j < blockCounts[i]; j ++) { blockList.push_back(std::make_pair(blockStarts[i][j], blockEnds[i][j])); |
