Skip to content

2.1 API suggestion: better templated scripting #879

@mgravell

Description

@mgravell

Currently LuaScript is typed against object. This has disadvantages:

  • it forces reflection and a dictionary check per execute
  • boxing for value types
  • we only use KEYS superficially (for routing) - the data is duplicated in ARGV

It might be overkill, but we could fix this. We could make LuaScript<T> : LuaScript with a typed new method, that already knows the full binding (computed in Prepare<T>), and making full use of KEYS instead of ARGV (rather than duplicating).

Doesn't seem urgent, but worth a look post 2.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions