Homec4science

Support a file data iteration interface for large files

Authored by epriestley <git@epriestley.com> on Mar 14 2015, 16:28.

Description

Support a file data iteration interface for large files

Summary: Ref T7149. A couple diffs down the line, this will let us emit chunked files without doing all the work up front or holding the entire file in RAM.

Test Plan:
(Some newlines added for clarity.)

$ ./bin/files cat F942
ABCDEFGHIJKLMNOPQRSTUVWXYZ
$ ./bin/files cat F942 --begin 1
BCDEFGHIJKLMNOPQRSTUVWXYZ
$ ./bin/files cat F942 --end 10
ABCDEFGHIJ
$ ./bin/files cat F942 --begin 3 --end 5
DE
$

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: joshuaspence, epriestley

Maniphest Tasks: T7149

Differential Revision: https://secure.phabricator.com/D12071

Details

Committed
epriestley <git@epriestley.com>Mar 14 2015, 16:28
Pushed
aubortJan 31 2017, 17:16
Parents
rPH32d8d675357c: Support resuming JS uploads of chunked files
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH2aefb438439d: Support a file data iteration interface for large files (authored by epriestley <git@epriestley.com>).Mar 14 2015, 16:28