TheTransitClock / transitime

TheTransitClock real-time transit information system
GNU General Public License v3.0
78 stars 30 forks source link

Trip history lookup should be once per prediction set #129

Closed scrudden closed 4 years ago

scrudden commented 5 years ago

The lookup of trip history for Kalman predictions is done for each stop path. This needs to be done just once per set of stop path predictions for a trip.

This is a performance issue.

scrudden commented 5 years ago

Perhaps using ehcache in front of memcached may be the solution here.

scrudden commented 4 years ago

Ehcache 3.x resolves this as the data required at any particular time is pulled into memory and is therefore fast too access. So this is resolved in tc_issue_147 which is set to be merged to develop.