Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any way to speed up d3.csv on large files?

Many large CSV files can be significantly compressed using e.g. gzip. Is there any way to speed up D3 on large CSV files by reducing the amount of data that needs to be transferred across the internet to the javascript in the browser. For example, if I have a 30MB CSV file foo.csv that compresses to a 9MB foo.csv.gz file, can I communicate the smaller file and adjust D3 to decompress it before doing the rest of the d3.csv processing.

like image 628
user2367434 Avatar asked Jul 16 '13 22:07

user2367434


1 Answers

No. D3 doesn't provide any functionality to handle compressed files. You could use a third-party library such as JSZip, but then you won't be able to use d3.csv directly.

like image 72
Lars Kotthoff Avatar answered Sep 20 '22 06:09

Lars Kotthoff