-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Road to 1.0. #95
Comments
This library is used by the Trex traffic generator (c++) and it does not rely on stack allocation. (private member of a class): (allocation): So should work fine if you make the struct opaque. |
The library is also used in the Performance Co-Pilot suite, and it's the same situation there that @ahothan described - no problem with making the structure opaque. |
one potential use case of hdr histogram is to use it in real-time software, where worst-case latency must be known. An opaque pointer is likely fine, but recording values shouldn't result in some sort of internal resizing/allocation to enable that use case. That said, I'm still evaluating HDR histogram in soft/hard real-time context, so I may be speaking too fast... |
The C implementation of HDR Histogram is fairly stable now, but there are a number of pending changes that should really be in place before making it a 1.0 version. The 3 outstanding features I think that should be required are:
However to complete this I think I would need to break the API to some degree. Mostly because the main struct is defined in the header which makes changing it potentially a breaking a change. To make future changes more flexible, I would like to make hdr_histogram an opaque point and hide the internal structure.
Feedback on how this may impact users would be appreciated. E.g. are there any users depending on stack allocation of the hdr_histogram?
Please reply to this issue if you have any issues or suggestions regarding the implementation for the next major revision of the HDR Histgoram.
The text was updated successfully, but these errors were encountered: