Skip to content

Use of std::strcmp at TGeo slows down DD4hep geometry construction #8

@SanghyunKo

Description

@SanghyunKo

When placing volumes within DD4hep, dd4hep::volume::placeVolume (eventually TGeo of ROOT) uses std::strcmp to navigate around volumes. (dd4hep::Volume::placeVolumeTGeoVolume::_addNodeTGeoVolume::GetNodeTObjArray::FindObjectstd::strcmp)

Usually, this does not cause any problem when the number of daughter volume is small. However, if the number of daughter volume exceeds around O(10000), it significantly slows down to O(h) of whole geometry contruction of DD4hep application.

There would be some way to improve this kind of behaviour since it does not happen in the standalone GEANT4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions