Skip to content

Object.setPrototypeOf() is a performance killer #1

Description

@jlgrall

core/src/registerRoot.js

Lines 28 to 29 in 12250ef

Object.setPrototypeOf(proto, parentProto)
Object.setPrototypeOf(RootElement, parentConstructor)

Hi, I read the article Writing a JavaScript Framework - The Benefits of Custom Elements. And I have been thinking about the use of Object.setPrototypeOf() which is a performance killer.

Why could you not use Object.create() ? What would be missing if you used Object.create()?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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