Mercurial > public > mercurial-scm > hg-stable
diff mercurial/wireprotov2peer.py @ 39454:1467b6c27ff9
wireprotov2peer: add TODO about streaming responses
This is a pretty big deficiency in the current implementation.
We don't want to forget about this.
Differential Revision: https://phab.mercurial-scm.org/D4435
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 22 Aug 2018 10:29:30 -0700 |
parents | 3ea8323d6f95 |
children | c734a5c82f38 |
line wrap: on
line diff
--- a/mercurial/wireprotov2peer.py Tue Sep 04 12:36:33 2018 -0400 +++ b/mercurial/wireprotov2peer.py Wed Aug 22 10:29:30 2018 -0700 @@ -136,6 +136,9 @@ response = self._responses[frame.requestid] if action == 'responsedata': + # This buffers all data until end of stream is received. This + # is bad for performance. + # TODO make response data streamable response.b.write(meta['data']) if meta['eos']: