StoregateSvc:retrieve. Avoid un-needed allocation of std:string.
requested to merge ATLAS-EGamma/athena:StoreGateSvc_retrieve_avoid_re_allocating_std_string into master
StoregateSvc:retrieve.
Avoid un-needed allocation of std:string
due to static_cast<std::string>
,
when the TKEY type is already std::string
.
There was an extra allocation for std::string
visible in profiles (not that high up
but visible)
@ssnyder I hope I understood the overload suggestion correctly.
I guess you should approve this in anycase.
The difference for std::string
input is kind of
- After this MR https://godbolt.org/z/sYha8nY6j
- As is now https://godbolt.org/z/q6rMhc6nG