|
Boost : |
Subject: Re: [boost] [histogram] review part 2 (implementation)
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2018-09-26 15:02:29
AMDG
On 09/25/2018 03:44 PM, Hans Dembinski wrote:
>
> The histogram iterators over axis types a lot. If they are small they are more likely to fit onto a cache line. When you use a dynamic histogram, the size of axis::any<â¦> is size of largest bounded axis type plus some bytes for the type index. The largest bounded axis type determines the size of axis::any, so I was generally careful in making the larger axis types not larger than necessary.
>
This actually makes the optimization pointless.
regular<pow> -> 3 doubles
variable (with buffer) -> 1 pointer
variable (with vector) -> 3 pointers
In Christ,
Steven Watanabe
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk