Skip to content

Object.setPrototypeOf() is a performance killer #1

@jlgrall

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()?

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