Skip to content

Improve duplicate routes/roots checks #70

Closed

Description

@jteresco

A hash table or other better lookup mechanism can significantly improve the efficiency of the checks that begin here. It's up to almost a minute with the growth of our highway data.

Activity

  1. yakra commented on May 23, 2018

    @yakra
    Contributor

    How did you do the markdown for the code snippet above?

  2. jteresco commented on May 24, 2018

    @jteresco
    ContributorAuthor

    Go to the code view of a file, click on the little grey number, and copy that URL and paste it in. GitHub then makes it look pretty here.

  3. yakra commented on May 24, 2018

    @yakra
    Contributor

    Ah! I copied such a URL and pasted into a comment, but I only previewed it rather than post. I guess that's not enough to work its magic.

  4. yakra commented on May 28, 2018

    @yakra
    Contributor

    Strange, this mechanism doesn't seem to work all the time.
    #87 (comment) for example.
    You may have seen a notification or email about me responding to that thread; I tried copying & pasting your comment and separating out the URL to its own line. No luck. Tried posting only the URL as a comment. No luck. Weird...

    Could this feature only work with some types of code (EG Python) and not others (EG CSV, C++)?

  5. jteresco commented on Jun 2, 2018

    @jteresco
    ContributorAuthor

    Switched the lists to sets and this part goes from about a minute to about .2 seconds. Yes, should have made that simple switch years ago.

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