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?
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?