Skip to content

[Question] Needless component creation in EntityEdit#add(Component) #661

@navneetankur

Description

@navneetankur

EntityEdit#add(Component) first creates a component using reflection and then replaces it with the component provided in argument. Why not just use the argument component directly.

It needlessly creates an extra component to be garbage collected as well as time taken to create that component using reflection. Seems like a simple fix.
Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions