Skip to content

vertex-related cleanup #107

Closed
TravelMapping/DataProcessing
#416

Description

@yakra

siteupdate.py
# compress edges adjacent to hidden vertices
for label, v in self.vertices.items():

  • label unused. Is actually a Waypoint now.
  • consider w instead of v.first_waypoint

->

HGVertex::first_waypoint no longer used (aleady unused in C++).
Was it before I started messing with the datachecks?

Activity

  1. yakra commented on Feb 15, 2021

    @yakra
    OwnerAuthor

    siteupdate.py
    # compress edges adjacent to hidden vertices
    for label, v in self.vertices.items():

    • label unused. Is actually a Waypoint now.
    • consider w instead of v.first_waypoint

    3f938cb


    HGVertex::first_waypoint no longer used (aleady unused in C++).

    # note: if saving the first waypoint, no longer need
    # lat & lng and can replace with methods

    // note: if saving the first waypoint, no longer need
    // lat & lng and can replace with methods

    We can remove either lat & lng or first_waypoint, but not both.

    • RAM:
      • C++: can save just under 8MB or just under 4MB respectively.
      • Py: I assume the savings will be a bit greater, since we need to store an object's type as well as its location.
    • Speed:
      • C++ is a fraction of a second slower with a method, probably due to more dereferencing.
      • Py: 77.3 s, up from 74.77

    Related: #153
    If removing lat & lng, squash.
    If removing first_waypoint, just do it.


    Was it before I started messing with the datachecks?

    May end up not caring about this question enough to answer it. :)

  2. yakra commented on Feb 15, 2021

    @yakra
    OwnerAuthor

    We can remove either lat & lng or first_waypoint, but not both.

    Removing lat & lng and replacing with a method is slower. Also requires some (minor) changes to PlaceRadius.contains_vertex in Python. Removing first_waypoint instead.

    dead branches

    on branch last commit descr.
    HGVertex e21946d996ace80530c9d92b798db65b9f931dc4 C++ HGVertex lat/lng methods
    Slower. Hard reset.
    HGVertexPy b5a79f5f1ce71c982f5940181ca9f8ce737a4348 Python HGVertex lat/lng methods
    PlaceRadius.contains_vertex bugfix
    Slower. Delete branch.
  3. added a commit that references this issue on Feb 15, 2021
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