Skip to content
This repository was archived by the owner on Jul 24, 2019. It is now read-only.
This repository was archived by the owner on Jul 24, 2019. It is now read-only.

uniqueItems validator #16

Description

@seagreen

(spec for uniqueItems validator)

It's incredibly slow the way it's currently written. Got any hints on how to check an []interface{} for uniqueness of elements?

Activity

  1. titanous commented on Mar 31, 2014

    @titanous
    Member

    Hmm, are we just comparing simple objects like strings and numbers, or objects too?

  2. titanous commented on Mar 31, 2014

    @titanous
    Member

    That's basically impossible to do in a performant way. Leave it for now. If it becomes an issue in the future we'll have to implement our own hash algorithm that can hash any object (ugh).

  3. seagreen commented on Apr 7, 2014

    @seagreen
    ContributorAuthor

    Link to the abandoned branch for posterity.

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