I run a medium-sized GTFS-Realtime feed (usually 100-300 TripUpdates & 100-300 VehiclePositions). I just checked, gzipping (with the default level) brought the feed's size down from 246kb to 50kb.
In case someone is interested in a JavaScript/Node.js implementation:
I have implemented the headers mentioned above as part of another project, using serve-buffer.
What applies to
gtfs-realtime-validator
(client) also applies to this project (server). From https://github.com/CUTR-at-USF/gtfs-realtime-validator/issues/124:I run a medium-sized GTFS-Realtime feed (usually 100-300
TripUpdate
s & 100-300VehiclePosition
s). I just checked, gzipping (with the default level) brought the feed's size down from 246kb to 50kb.