Skip to content

def-map-type's predefined count doesn't run in constant time #59

Open
@xificurC

Description

I think the culprit is here. (counted? (keys {:a 1})) returns false, so this is actually a lie :)

I think you cannot provide a default implementation and should instead force the users to define count themselves.

Right now defining count myself within def-map-type solves the performance issue.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions