Skip to content

Commit 5615fe6

Browse files
committed
improve performance
1 parent 23db392 commit 5615fe6

File tree

10 files changed

+1169
-334
lines changed

10 files changed

+1169
-334
lines changed

args.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ type Args struct {
1212
NLine int //number of lines that should be displayed
1313
Strict bool // check for missing data
1414
AsyncLoad bool // enable async loading for progressive rendering
15+
MemoryMB int // Memory limit in MB (0 = unlimited/default, >0 = custom limit)
1516
}
1617

1718
func (args *Args) setDefault() {
@@ -24,4 +25,5 @@ func (args *Args) setDefault() {
2425
args.NLine = 0
2526
args.Strict = false
2627
args.AsyncLoad = true // default to async loading
28+
args.MemoryMB = 0 // Unlimited by default
2729
}

0 commit comments

Comments
 (0)