rawgeti bypasses metatable lookups (index overloading, essentially). We don't need to care about it.
Mostly this is pedantic, mostly that looking up refs in lua should probably always use rawgeti because it doesn't make sense to overload the behavior of ref tracking. Probably nothing good could ever come of it.
The perf improvement is negligible. 99% of the overhead is mixing the samples, not reading the sourcedata pointer from lua.
rawgeti bypasses metatable lookups (index overloading, essentially). We don't need to care about it.
Mostly this is pedantic, mostly that looking up refs in lua should probably always use rawgeti because it doesn't make sense to overload the behavior of ref tracking. Probably nothing good could ever come of it.
The perf improvement is negligible. 99% of the overhead is mixing the samples, not reading the sourcedata pointer from lua.