Open miranov25 opened 3 years ago
figureArray = [
['A'], ['histo(A/B-C)'], {"color": "red", "size": 7,nBins=10, range=() ],
['A','B'], ['histo'], {"color": "red", "size": 7, nBins=10 , range=()],
['A','B'], ['histo2D'], {"color": "red", "size": 7, nBins=10 , range=()],
]
Filtering took 1007.57999998983 milliseconds.
Filtering took 166.22499999403954 milliseconds.
VM36:130 Histogramming took 47.06500000599772 milliseconds.
Solution | speedup factor | commit | time per 210^6 bins |
---|---|---|---|
Starting point | 5 s | ||
Caching bin calculation | ~2 | https://github.com/miranov25/RootInteractive/pull/93/commits/40b1f423c73363dca8b7971060b862b3342c5f75 | ~??? s |
Directo function call instead of callback | ~3 | https://github.com/miranov25/RootInteractive/pull/93/commits/379116962d0c8d555495d67d73d90fad6fb52ab6 | Histogramming took 1073.6 ms |
??? | ~2 | https://github.com/miranov25/RootInteractive/pull/93/commits/90ad2a6678af4e2b6f82958b09d3e9fa9a300e98 | Histogramming took 730.9 milliseconds. |
NEW using build in | ~3 | https://github.com/miranov25/RootInteractive/pull/94/commits/969368b92dbd3b744d84c58e02e233b34d362c28 | Histogramming took 323.8 milliseconds. |
histogramArray = [
{"name":"histo0", "title": "histo0", type="histo", variables=["X","Y"], "weight":"C" },
{"name":"histo1", "title": "histo1", type="histo", variables=["X","Y"], "weight":"C" },
]
to be used in figure array using names.
Examples from other packages :
Check also python histogram packages
In case histogram ranges not specified - automatic ranges should be recalculated, or we should support auto mode
Proposal: syntax for unbinned data histogramming on client
Standard syntax example: https://github.com/miranov25/RootInteractive/blob/master/RootInteractive/InteractiveDrawing/bokeh/test_bokehDrawSA.py
->