Azzera filtri
Azzera filtri

More efficient way to load data

2 visualizzazioni (ultimi 30 giorni)
Natialol
Natialol il 1 Apr 2013
Hello,
Is there a more efficient way to load in data(array), I have a 1x10^7 which is roughly 4mb but takes almost 70s to load. Am using the
load('filename','varname')
command
  6 Commenti
Matt J
Matt J il 1 Apr 2013
Modificato: Matt J il 1 Apr 2013
But you still have to move it into RAM. Why wouldn't that transfer limit your speed, since in your hierarchy it's 2nd in slowness only to Disk?
And if not, how does one explain the OP's 70sec load time.
Walter Roberson
Walter Roberson il 1 Apr 2013
Loads from disk to RAM generally use DMA, and thus proceed in parallel. The decompression would mostly happen in CPU register and primary cache, with the flushes to secondary cache possibly in parallel (depending on the memory controller and the CPU properties.)

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su File Operations in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by