Skip to content

JSValue Designs #1

@ackava

Description

@ackava

JSValue Struct

Pros

  1. Access fields directly
  2. Primitives can live on Stack
  3. Passing requires copying, if JSContext is field member, it requires copying

Cons

  1. Method calls require if checks

JSValue as a class

Pros

  1. Same as existing

Cons

  1. Pass context on stack every time vs call a static method once (need to check performance benefits)

JSValue as an interface

  1. Every call is an indirect method

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions