You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
Activity
yakra commentedon Nov 7, 2018
Does not result in significant RAM savings. I'm going to leave this alone.
yakra commentedon Nov 14, 2018
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_namein vertices and not waypoints.That can save 243100 unique names -- at what average length?
Where is
unique_nameused?Sort this by the order it actually happens.
yakra commentedon Nov 15, 2018
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_namefrom waypoints to vertices may still be something to explore, but would require a moderate reworking of these classes. Low priority.yakra commentedon Feb 5, 2019
Closing this as a duplicate of the more detailed #63