A website to view arrival times for the NYC subway! Mirrored to https://github.com/gavinmorrow/sbwy. sbwy.gavinmorrow.com
nyc subway gleam mta-nyct gtfs

Use ETS tables directly instead of Booklet

This improves performance by reducing the amount of copying (and therefore, garbage collecting) that needs to be done on each request. Before, the entire realtime data had to be copied on every request, since it lived as a single term (of type Dict) in Booklet's ETS table. Now, since ETS tables can be a key-value store, only the actual row(s) that are needed are copied.


Author
Date Commit Parent bd17c0d2 Change ID
+260 -41
8 changed files
+260 -41
8 changed files