Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[cxxmodules] Use pow of 2 to pre-allocate the string vector.
  • Loading branch information
vgvassilev committed Jul 18, 2019
commit d140fbdbb2471782b5ff5feead5578cdc04cea55
4 changes: 2 additions & 2 deletions core/metacling/src/TCling.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -6185,7 +6185,7 @@ static void* LazyFunctionCreatorAutoloadForModule(const std::string& mangled_nam

// Iterate over files under this path. We want to get each ".so" files
for (std::pair<uint32_t, std::string> &P : sLibraries) {
llvm::SmallString<400> Vec(sPaths[P.first]);
llvm::SmallString<512> Vec(sPaths[P.first]);
llvm::sys::path::append(Vec, StringRef(P.second));
const std::string LibName = Vec.str();

Expand All @@ -6212,7 +6212,7 @@ static void* LazyFunctionCreatorAutoloadForModule(const std::string& mangled_nam
}

for (std::pair<uint32_t, std::string> &P : sSysLibraries) {
llvm::SmallString<400> Vec(sSysPaths[P.first]);
llvm::SmallString<512> Vec(sSysPaths[P.first]);
llvm::sys::path::append(Vec, StringRef(P.second));
const std::string LibName = Vec.str();

Expand Down