Page MenuHomePhabricator

Support a file data iteration interface for large files
ClosedPublic

Authored by epriestley on Mar 13 2015, 7:39 PM.
Tags
None
Referenced Files
F14061631: D12071.diff
Mon, Nov 18, 7:34 AM
F14045902: D12071.diff
Wed, Nov 13, 4:03 PM
F14036950: D12071.diff
Sun, Nov 10, 1:04 PM
F14020765: D12071.diff
Wed, Nov 6, 1:52 AM
F14007399: D12071.diff
Tue, Oct 29, 5:07 AM
F14004938: D12071.id29054.diff
Sun, Oct 27, 5:42 AM
F13975050: D12071.diff
Oct 18 2024, 8:29 AM
F13958153: D12071.id29046.diff
Oct 14 2024, 1:13 PM

Details

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
$

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Support a file data iteration interface for large files.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Mar 13 2015, 10:31 PM
This revision was automatically updated to reflect the committed changes.