Commit 66c0195
committed
[RF] Don't disable dirty flag propagation in generation contexts
We should avoid to disable RooFits internal caching if not well
justified, because not doing the caching can lead to severe performance
hits like in #21788.
There are some places in RooFit where the caching is disabled on
purpose, because sometimes the overhead of the bookkeeping for caching
can occasionally be more expensive than model evalution itself. However,
this should not be done in general. One place where this happened were
the **RooGenContext** and **RooAddGenContext** helper classes for toy
dataset sampling via `RooAbsPdf::generate()`, and this commit suggests
to remove it. The performance hit that it incurres if the model is
actually expensive to evalutate is too high.
Partialy closes #21788.1 parent 785d8af commit 66c0195
2 files changed
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | 85 | | |
87 | 86 | | |
88 | 87 | | |
| |||
322 | 321 | | |
323 | 322 | | |
324 | 323 | | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | 324 | | |
330 | 325 | | |
331 | 326 | | |
| |||
0 commit comments