Re:Virtualizing APIs with Go and Python
by boomlinde on Friday December 11, 2015 @12:39PM
(#10718470)
readlines() just to pick the first seems weird if you expect a single line. I'd read the whole thing in one go with read(). Then I start wondering if it wouldn't make more sense to keep the stream open and just iterate over new messages line by line and avoid the overhead of loading an executable, importing libraries etc. on every request
[ Parent
| on HN ]
There are no comments on this comment yet.