Preparation for timetable v4
Ditch the cache function
Inform the compiler the function will not write in the pointers.
Loose ends
Apply const to bitset
This commit adds const to tdata.c et al. It looks it gets a bit worse now.
This code is again slower.
Revert to e72b33f1087539856b5de20a2343b764420eef40