further optimize compile

This commit is contained in:
2024-05-23 08:31:26 +00:00
parent e4c7c1b888
commit dbbbe38774
6 changed files with 80 additions and 45 deletions

View File

@ -11,23 +11,24 @@ struct FullUserData {
uint8_t privilege;
};
struct StationNameData {
char name[100][40];
};
static_assert(sizeof(StationNameData) == 4000);
// waring: this struct is extremely large, later DiskManager should be optimized to handle this
struct FullTrainData {
char trainID[21];
uint8_t stationNum;
// char stations[100][41];
hash_t stations_hash[100];
uint32_t seatNum : 18;
uint16_t startTime : 12;
uint16_t saleDate_beg : 10, saleDate_end : 10;
uint8_t type : 6;
struct StationData {
uint32_t price : 18;
uint16_t travelTime : 15;
uint16_t stopoverTime : 15;
};
StationData stations[100];
uint16_t travelTime[100];
uint16_t stopoverTime[100];
};
struct TicketPriceData {};
class TrainDataDrive : public DataDriverBase {};