On Thursday, June 11, 2015 at 5:32:02 AM UTC-4, Ritchie Cai wrote: > > Just wondering though, is there a faster way to load an array than this > way? > https://github.com/malloc82/imaging/blob/45475b99f564b1ac77e668e04b91cb9c01a096d7/src/imaging/dicom.clj#L138 > the data file I'm trying to read from contains text based pixel values. >
I'm not sure about your use case but you may want to look into HDF5 data format. That's what it's made for: Super fast loading of numerical data from disk. It can even load in parallel (many hundreds MB/s). As soon as my text file takes too long to load I usually just convert it first to HDF5 and then go from there. Linux/Mac has HDF tools which can dump and import (h5import) your data from the command line. It's also a very common data format. HTH -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.