Skip to content
Prev 62160 / 63421 Next

[External] readChar() could read the whole file by default?

On Fri, 26 Jan 2024, Michael Chirico wrote:

            
The string cache seems like a very dark pink herring to me. The fact
that the lines are allocated on the heap might create an issue; the
cache isn't likely to add much to that. In any case I would need to
see a realistic example to convince me this is worth addressing on
performance grounds.

I don't see any reason in principle not to have readChar and readBin
read the entire file if n = -1 (others might) but someone would need
to write a patch to implement that.

Best,

luke