The implementation of `TMBitset` will make `sizeof(HighwaySegment)` ~128~ 112. Ergo, it will be a good candidate for `alignas(64)`. What tasks iterate through these? How do they perform? `TMArray`: https://en.cppreference.com/w/c/memory/aligned_alloc or `new` operator
Activity
[-]HighwaySegment alignment[/-][+]HighwaySegment size & alignment[/+]yakra commentedon May 11, 2023
Could conceivably get as low as 48 B:
*waypoint1and*waypoint2could be replaced with functions afterWaypointandHighwaySegmentobjects are stored sequentially in theirRoute.*routeis necessary.double lengthcan be calculated on the fly -- I forget how much time store+retrieve saved in C++*concurrentis necessary.clinched_byis necessary.clin_mtxcould go bye-bye.Add
uint32_t collap_span, travel_span;in order to collapse theHGEdgeclass intoHighwaySegmentand we're still at 56 B, < 1 cache line.