You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TString header only uses `TMath` functions that are readily
available in the standard library.
The `TMathBase.h` header is quite big, and avoiding to include it
reduces the overall cold-ccache compile time of the full ROOT project
with all default features by about 2 % on my machine, namely from 870 s
to 855 s on average.
In the places where the `TMath` functions were used but only indirectly
included via `TString.h` inclusion, the commit suggests to use the
`<cmath>` functions instead.
Copy file name to clipboardExpand all lines: README/ReleaseNotes/v638/index.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,13 @@ the deprecation period was extended.
95
95
## JavaScript ROOT
96
96
- A new configuration option `Jupyter.JSRoot` was added in .rootrc to set the default mode for JSROOT in Jupyter notebooks (on or off).
97
97
98
+
### Optimization of ROOT header files
99
+
100
+
More unused includes were removed from ROOT header files.
101
+
For instance, `#include "TMathBase.h"` was removed from `TString.h`.
102
+
This change may cause errors during compilation of ROOT-based code. To fix it, provide missing the includes
103
+
where they are really required.
104
+
This improves compile times and reduces code inter-dependency; see https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/WhyIWYU.md for a good overview of the motivation.
voidSetJoinLinePS(Int_t joinline=0) {fJoinLinePS=joinline;} ///< Set the line join method used for PostScript, PDF and SVG output. See `TPostScript::SetLineJoin` for details.
311
311
voidSetCapLinePS(Int_t capline=0) {fCapLinePS=capline;} ///< Set the line cap method used for PostScript, PDF and SVG output. See `TPostScript::SetLineCap` for details.
0 commit comments