Pull requests

#8 Merged
Repository
jas43
Branch
default
Repository
haraldkl
Branch
default

get_table_userdata: getting a userdata value from a table.

Author
  1. jas43
Reviewers
Description

Hi!

Just a little further work on userdata (commit 36970e86f833)--add the equivalent procedure for reading userdata from a table.

Userdata is a pretty specialised object (and used rarely?). Is it worth adding the equivalent procedures to aot_vector_module?

  • Learn about pull requests

Comments (1)

  1. Harald Klimach repo owner

    Thanks. I am not sure about the usage scenario to read userdata in vectorized form from the Lua code, but it might be handy in some cases. More interesting from my point of view is the other direction, when passing a complete array of data as input for a Lua function in the form of a userdata object, that might provide a big speed improvement. However, so far speed was no issue for me here, and I didn't bother looking into it, yet.