Skip to content

area graph edge-matching speed #176

Closed
TravelMapping/DataProcessing
#453

Description

@yakra

if ((!g.placeradius || g.placeradius->contains_edge(e)) && !e->s_written[threadnum])

if ((!g.placeradius || g.placeradius->contains_edge(e)) && !e->t_written[threadnum])

if ((!g.placeradius || g.placeradius->contains_edge(e)) && !e->c_written[threadnum])

Putting the written checks first will eliminate redundant membership checks and speed up area graph generation.
Nota bene: HighwayGraph.cpp & the written arrays are in flux now per #69 & TravelMapping#375 (comment). Line numbers and code will change somewhat.

It's a heavier lift to get this into Python, but... maybe the area graph improvements could make it worthwhile?

Activity

  1. yakra commented on Jul 12, 2021

    @yakra
    OwnerAuthor
    • What's faster in each language?
      • PlaceRadius::contains_edge doing all the trig functions for both vertices
      • testing mvset membership for both vertices

    C++ (ST):

    host before reorder
    (OP)
    trig
    -> set
    BT .957 .893 .863
    lab1 .593 .552 .571
    lab2 .673 .644 .641
    lab3 .877 .839 .831
    lab4 .823 .780 .777
    lab5 .491 .467 .462
    bsd .989 .958 1.026
    NEer .874 .863 .869

    Python:

    host before reorder
    (OP)
    trig
    -> set
    lab1 1.81 1.50 1.14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions