10-15 March 2019
Steinmatte conference center
Europe/Zurich timezone

Migrating large codebases to C++ Modules

13 Mar 2019, 19:00
20m
Steinmatte Plenary

Steinmatte Plenary

Oral Track 1: Computing Technology for Physics Research Track 1: Computing Technology for Physics Research

Speaker

Yuka Takahashi (University of Tokyo)

Description

ROOT has several features which interact with libraries and require implicit header inclusion. This can be triggered by reading or writing data on disk, or user actions at the prompt. Often, the headers are immutable and reparsing is redundant. C++ Modules are designed to minimize the reparsing of the same header content by providing an efficient on-disk representation of C++ Code. ROOT has released a C++ Modules-aware technology preview which intends to become the default for the next release.

In this contribution, we would like to summarize our ROOT experience migrating to C++ modules the codebase of ROOT. We outline the challenges for migration of the CMS software stack to use C++ modules, including integration of modules support in the build system while providing better functionality and correctness. We also give an insight of the continuous process of the improving performance bottlenecks for C++ modules and also evaluate the performance benefits that experiments are expected to achieve.

Primary authors

Oksana Shadura (National Academy of Sciences of Ukraine (UA)) Vasil Georgiev Vasilev (Princeton University (US)) Yuka Takahashi (University of Tokyo)

Presentation materials

Peer reviewing

Paper