tlrobinson / narwhal

[DEPRECATED] A JavaScript standard library, package manager, and more.
http://narwhaljs.org/
372 stars 16 forks source link

Binary Stream `forEach` #24

Closed kriskowal closed 14 years ago

kriskowal commented 15 years ago

Consider implementing forEach on Binary streams in terms of read(null) (for read up the the default buffer length and execute a block with the result).

kriskowal commented 15 years ago

This will permit byte streaming in Jack, improving performance for large files, and making it possible to stream files larger than the Jack app's active memory.

kriskowal commented 14 years ago

I'm pretty sure we've done this.

kriskowal commented 14 years ago

Closing

tlrobinson commented 14 years ago

This is only implemented on TextInputStream, not normal input streams. Shall we open a new issue for that? I don't think we can reopen closed issues.

kriskowal commented 14 years ago

Drat. I'll take care of it.