Skip to content

Cache commonly-used JSRT property keys (JsPropertyIdRefs) #234

Description

@jasongin

From #233 (comment)

Consider caching commonly-used property keys, instead of allocating them whenever they are used.

  • In napi_define_class(): "prototype", "constructor"
  • In napi_define_properties(): "get", "set", "value", "configurable", "enumerable", "writable"
  • In napi_get_array_length(): "length"

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