yakra / DataProcessing

Data Processing Scripts and Programs for Travel Mapping Project
0 stars 0 forks source link

HighwaySegment size & alignment #249

Open yakra opened 1 year ago

yakra commented 1 year ago

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

yakra commented 1 year ago

Could conceivably get as low as 48 B:

Add uint32_t collap_span, travel_span; in order to collapse the HGEdge class into HighwaySegment and we're still at 56 B, < 1 cache line.