These are chat archives for ChaiScript/ChaiScript

27th
Dec 2015
Jason Turner
@lefticus
Dec 27 2015 15:56
In my experience smaller executables tend to be faster just in general too, with less code vying for the cache. Based on what I know of your project, I would personally probably do something like: std::function<Boxed_Value (const std::map<std::string, Boxed_Value>)> which would give you the most flexibility. However, an even more generic option would be to just store Boxed_Value, then unpack it as a generic function or strongly typed function later when/if necessary