Skip to content

Overhead too big? #42

Open
Open

Description

@mbianco

In a line line this

return src && src->type() == typeid(T) ? &static_cast<impl<T> *>(src->m_impl.get())->m_obj : nullptr;

it turns out the overhead can be 20x more than a regular function call. Could this be improved for the case of low-latency applications?

Activity

  1. lukasm91 commented on Sep 2, 2019

    @lukasm91
    Contributor

    We could create an unsafe_anycast without the second check. In combination with #39 probably a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions