Skip to content

HighwayGraphVertexInfo ctor #8

Closed

Description

@yakra
        # note: if saving the first waypoint, no longer need first
        # three fields and can replace with methods

Activity

  1. yakra commented on Nov 7, 2018

    @yakra
    OwnerAuthor

    Does not result in significant RAM savings. I'm going to leave this alone.

  2. yakra commented on Nov 14, 2018

    @yakra
    OwnerAuthor

    Try this again. Take a more "scientific" look at RAM savings. (Time difference?)
    Implement for now; it's the easy solution.

    A future avenue to explore is storing unique_name in vertices and not waypoints.

    338672 are each occupied by  1 waypoints.
    152386 are each occupied by  2 waypoints.
     30693 are each occupied by  3 waypoints.
      6642 are each occupied by  4 waypoints.
      1610 are each occupied by  5 waypoints.
       401 are each occupied by  6 waypoints.
       104 are each occupied by  7 waypoints.
        28 are each occupied by  8 waypoints.
         9 are each occupied by  9 waypoints.
         5 are each occupied by 10 waypoints.
         2 are each occupied by 11 waypoints.
    

    That can save 243100 unique names -- at what average length?

    Where is unique_name used?

    1133: HighwayGraphVertexInfo init: self.unique_name = waypoint_list[0].unique_name
    1133: HighwayGraphVertexInfo init: self.unique_name = waypoint_list[0].unique_name
    1165: printable string for vertex
    1183: HighwayGraphEdgeInfo init: index to graph.vertices (from waypoint)
    1184: HighwayGraphEdgeInfo init: index to graph.vertices (from waypoint)
    1200: HighwayGraphEdgeInfo init: index to graph.vertices (from waypoint)
    1204: HighwayGraphEdgeInfo init: index to graph.vertices (from waypoint)
    1209: HighwayGraphEdgeInfo init: index to graph.vertices (from waypoint)
    1210: HighwayGraphEdgeInfo init: index to graph.vertices (from waypoint)
    1248: HighwayGraphCollapsedEdgeInfo init: index to graph.vertices (from waypoint)
    1249: HighwayGraphCollapsedEdgeInfo init: index to graph.vertices (from waypoint)
    1380: string from vertex
    1380: string from vertex
    1382: string from waypoint: intermediate / collapsed edge (unused debug function, but best not to break)
    1392: string from waypoint: intermediate / collapsed edge (unused debug function, but best not to break)
    1468: HighwayGraph init: initial w.unique_name = None
    1484: HighwayGraph init: # skip if named previously as someone else's colocated point
    1520: HighwayGraph init: wpt.unique_name = point_name # mark each of these Waypoint objects also with this name
    

    Sort this by the order it actually happens.

  3. reopened this on Nov 14, 2018
  4. yakra commented on Nov 15, 2018

    @yakra
    OwnerAuthor

    Does not result in significant RAM savings.

    Appears to be the case, actually using ~ 6 - 19 MB more.
    If there is any savings, it's slight, and lost in the noise of whatever else the computer is doing (doubtful though at ~19 MB).

    Moving unique_name from waypoints to vertices may still be something to explore, but would require a moderate reworking of these classes. Low priority.

  5. yakra commented on Feb 5, 2019

    @yakra
    OwnerAuthor

    Closing this as a duplicate of the more detailed #63

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions