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:31:43 +0000 (14:31 -0400)
commit1b6e85e2b8d5e69e2750ae0f5e56dee6cb28f2c6
tree53aedd8c0ef24919eca25d8990dca55270c49a9b
parent1f4d6f3af62cf596e0d3bede22e2bbaea4f4bff3
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