Skip to content
Snippets Groups Projects
Commit 30e336a2 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

DataObjID: on-demand lookup of className

Retrieving the class name to a CLID requires querying the `ClassIDSvc`,
which (at least in the ATLAS implementation) requires taking a lock
during the lookup and in general might be a costly operation. Instead of
doing this in the construction of `DataObjID` only lookup the
class name when needed and then cache the result.

Also cleanup the needlessly complicated code of one-time retrieval of
ClassIDSvc by using a simple static.

This fixes some performance problems in multi-threaded ATLAS
jobs (ATEAM-1054).
parent c86afe8b
No related branches found
No related tags found
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment