lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


What's the motivation behind using metatables for this in the first place?
Would directly using the ffi.new returned array object an option,
cause that would give you most speed?

-Christoph

2011/4/8 KR <krunal.rao78@gmail.com>:
> The issue I am having is that in the test code below the access to the elements
> of the vector via a metatable via __index and __newindex seems to be slower than
> the remaining ways of accessing this elements I have tested.