4 ms·
I did this a few years ago before I knew it was a "thing" and felt really proud that it actually worked. The use-case was we had a slow database query for basi
by fenwick67 9y ago
I did this a few years ago before I knew it was a "thing" and felt really proud that it actually worked.
The use-case was we had a slow database query for basically map pins. The first ones pins come back in milliseconds, but the last ones would take seconds. The UI was vastly improved by streaming the data instead of waiting for it all to finish, and the server code was easy to implement.
A different delimiter would have worked, but newlines are easy to see in a debugger.