Skip to content

Avoid clone in Entity constructor #540

@aaronjeline

Description

@aaronjeline

Category

Internal refactors/changes

Describe the feature you'd like to request

The constructor for Entity, Entity::new_with_attr_partial_values takes a HashMap, deconstructs it, and then reconstructs a new HashMap. We should avoid this if possible.

Describe alternatives you've considered

Status quo (functionality unchanged)

Additional context

No response

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    internal-improvementRefactoring, minor performance improvement, or other changes that Cedar users may never notice

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions