Skip to content

Commit

Permalink
Remove rowCount vector.
Browse files Browse the repository at this point in the history
  • Loading branch information
mchav committed Dec 29, 2024
1 parent 48e0ee6 commit 502b382
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Data/DataFrame/IO.hs
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ readSeparated c opts path = withFile path ReadMode $ \handle -> do
let numColumns = length columnNames
totalRows <- countRows path
let actualRows = if hasHeader opts then totalRows - 1 else totalRows
mutableCols <- VM.replicateM numColumns (VM.new actualRows) -- Start with a capacity of 1024 rows per column
rowCounts <- VM.replicate numColumns 0 -- Keeps track of the row count for each column
mutableCols <- VM.replicateM numColumns (VM.new actualRows)

-- Read rows into the mutable vectors
fillColumns 0 c mutableCols handle
Expand Down

0 comments on commit 502b382

Please sign in to comment.