The implementation of cat is currently strict. This means that if the file is large, cat will attempt to bring the entire contents into memory resulting in a heap exception.
Re implement cat (as well as avrocat) to be lazy. Note that support for gob patterns should remain. Scoobi's implementation of BridgeStoreIterator should be instructive and is potentially a source of code reuse and refactoring.
The Scoobi REPL includes the function
cat
that returns anIterable[String]
for a given file path. A typical usage is:The implementation of
cat
is currently strict. This means that if the file is large,cat
will attempt to bring the entire contents into memory resulting in a heap exception.Re implement
cat
(as well asavrocat
) to be lazy. Note that support for gob patterns should remain. Scoobi's implementation ofBridgeStoreIterator
should be instructive and is potentially a source of code reuse and refactoring.