Skip to content

Commit

Permalink
Simplify block reading
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulMansour committed Feb 9, 2022
1 parent 5ba8cb3 commit 82e8b9e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 16 deletions.
4 changes: 2 additions & 2 deletions APLSource/Main/GetSheetData.aplf
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
p.BufferCreateBuffer p.BlockSize
p.FirstRow
p.Fragment''
p.Blocks0
p.Block0
p.EndOfRows0
p.(Data Rows Columns Header)
_ProcessBlocks p
_Dispose¨z p.File
p.UniqueColumns{[]}p.Columns
_GetColumnFormatCodes p
1=p.Blocks:p
1=p.Block:p
p.Datap AssembleColumn¨p.UniqueColumns
p.Header(p.UniqueColumnsp.Columns)\p.Header
p
Expand Down
2 changes: 1 addition & 1 deletion APLSource/Main/ProcessBlock.aplf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
jri rc Scatter points
d(nr,uc)'' Default
d[j]v Scatter point
p.Blocks>1:uc(¨d)
p.Block>1:uc(¨d)
hwi.HeaderRows
p.FirstRow(h=¯1++\0=m[;0])m
p.Headerhd
Expand Down
5 changes: 0 additions & 5 deletions APLSource/Main/ReadBlock.aplf

This file was deleted.

9 changes: 7 additions & 2 deletions APLSource/Main/ReadRowBlock.aplf
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
ReadRowBlock{
.EndOfRows:''
0=.Blocks:ReadRowBlockFirst
TrimRowBlock ReadBlock
.Block+1
r.File.ReadBlock .(Buffer 0 BlockSize)
v.Fragment,r.Buffer.Clone
.Block>1: TrimRowBlock v
/'<sheetData/>'v:''
n11+'<sheetData>'v
TrimRowBlock nv
}
6 changes: 0 additions & 6 deletions APLSource/Main/ReadRowBlockFirst.aplf

This file was deleted.

0 comments on commit 82e8b9e

Please sign in to comment.