GlobalFishingWatch / gpsdio

AIS I/O with Python, dictionaries, and the GPSd AIVDM schema.
Other
6 stars 3 forks source link

Make GPSDIOStream a baseclass and implement GPSDIOReader/Writer #148

Closed geowurster closed 9 years ago

geowurster commented 9 years ago

To remove the I/O checks in read/write methods. Billions of messages get passed through these classes so we don't want to be checking every single time to see if the stream is in the right mode. We get these checks automatically by using read/write specific objects and assume that the underlying file-like object does this check on its own.