MCPcopy Create free account
hub / github.com/coronalabs/corona / PushCachedFunction

Method PushCachedFunction

librtt/Rtt_Lua.cpp:430–451  ·  view source on GitHub ↗

lua_pushcfunction and lua_pushcclosure are very expensive Roberto (yes, that Roberto) recommends caching all C functions in the global registry using the function ptr value as the key.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

lua_gettopFunction · 0.85
Lua_PushFunctionFunction · 0.85
Lua_CacheClosureFunction · 0.85

Tested by

no test coverage detected