Don't copy the node/way/segment/turn function objects for every call. 12-13% speedup for lua processing right there.
This commit is contained in:
committed by
Patrick Niklaus
parent
9d30817294
commit
5c8e2b6f78
@@ -31,6 +31,11 @@ struct LuaScriptingContext final
|
||||
bool has_way_function;
|
||||
bool has_segment_function;
|
||||
|
||||
sol::function turn_function;
|
||||
sol::function way_function;
|
||||
sol::function node_function;
|
||||
sol::function segment_function;
|
||||
|
||||
int api_version;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user