Skip to content

Freezing overload resolution for performance. #588

@ninnghazad

Description

@ninnghazad

I remember that when talking about ChaiScript performance the dynamic overload resolution was mentioned as a bottleneck, and how caching it would be cool but unfeasible seeing how stuff can be invalidated and so on.

I was wondering if it was possible to conceive of a way to "freeze" the overload resolution and then cache it.

As in, i load and execute a bunch of scripts - setting stuff up, then freeze it and doing kind of static resolution, building a fast index of overloads or something. If i add stuff after that one may have to rebuild that manually or make do with a LIFO way of ignoring overloads and just go by name.

Thoughts?

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