question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

chunkSize do not have any effect, defaults to around 65KB

See original GitHub issue

Trying to set chunkSize to 50Kb but no matter what I set it seems to read round 65Kb chunk. Have tried all the 3 settings individually, but do not have any effect on chunk size (number of lines read from csv on each chunk call back remains the same)

options.chunkSize = 40000

Papa.RemoteChunkSize = 40000;

Papa.LocalChunkSize = 40000;

Even after setting options.chunkSize = null, Papa parses in multiple chunks

Please help …

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

1reaction
akash-rajputcommented, Dec 2, 2019

Any updates on this?

0reactions
WarrenWilkinsoncommented, Feb 28, 2022

I had this issue using fs.createReadStream to create the file. It appears that there is a buffer inside the stream that’s about 10 MB. So it’s not PapaParse’s fault.

If this is your issue, you can pass parameters to fs.createReadStream to let it buffer more.
Something like this snippet should get you started…

Papa.LocalChunkSize =  Papa.LocalChunkSize * 10;
const file = fs.createReadStream(dataPath, { highWaterMark: Papa.LocalChunkSize });
Read more comments on GitHub >

github_iconTop Results From Across the Web

pandas does chunksize matter for speed? - Stack Overflow
It depends. You're trading off processing speed against memory. It takes slightly longer to process the file in chunks, but if that means...
Read more >
How to Configure Multiprocessing Pool.map() Chunksize
You can execute tasks in batches using the “chunksize” argument when using the Pool map() method. In this tutorial you will discover the ......
Read more >
Transferring Payload in Multiple Chunks (Chunked Upload ...
chunk-size is the size, in bytes, of the chunk-data, without metadata. For example, if you are uploading a 65 KB object and using...
Read more >
Apache HBase ™ Reference Guide
MAX_VALUE by default so that the network will fill the chunk size defined ... If "hbase.coprocessor.enabled" is 'false' this setting has no effect....
Read more >
If the block size is 64MB and replication factor is 3 and I have ...
The default block size in hdfs datanodes is 64mb. But you can increase to 128,256mb as per you requirement. · Since you have...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found