Skip to content
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

optimize getRawSlices() #33

Merged
merged 2 commits into from
Aug 22, 2016
Merged

optimize getRawSlices() #33

merged 2 commits into from
Aug 22, 2016

Commits on Aug 22, 2016

  1. optimize getRawSlices()

    From looking at perf traces, getRawSlices() comes up quite a lot. We end up
    constructing and destroying a lot of std::vector. This replaces that code with
    a thin layer above evbuffer which requires passing in a C array to be filled.
    This is not nearly as nice but avoids any heap allocations. Eventually if we
    switch to C++14 we could use std::dynarray which would be nicer.
    mattklein123 committed Aug 22, 2016
    Configuration menu
    Copy the full SHA
    c2ff775 View commit details
    Browse the repository at this point in the history
  2. fix

    mattklein123 committed Aug 22, 2016
    Configuration menu
    Copy the full SHA
    d9d0e02 View commit details
    Browse the repository at this point in the history