lib/core: remove ropes intrude import in stream
authorLucas Bajolet <lucas.bajolet@gmail.com>
Fri, 6 Apr 2018 05:57:29 +0000 (01:57 -0400)
committerLucas Bajolet <lucas.bajolet@gmail.com>
Tue, 1 May 2018 18:25:31 +0000 (14:25 -0400)
commit7042147c896a86b9eeac95633a1d911c77549f73
tree3d9bc0619e9246ae9f45968b6a7e914cfa7f330d
parent04fd4399055f1e05bccedc796cbce67a489a0f81
lib/core: remove ropes intrude import in stream

The intrude import of ropes in lib/core/stream was only due to the
ropification of the read_all_bytes.

As the leaves were too small to have a positive impact with the actual
threshold value being chosen here, we remove the ropification in the
read_all function.

This simplifies code a lot, and keeps out the intrude import of the
ropes module.

We also take advantage of this modification to start using codecs here
to decode the string.

Signed-off-by: Lucas Bajolet <lucas.bajolet@gmail.com>
lib/core/stream.nit