Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7482 > unrolled thread
| Started by | Frank Iannarilli <frankeye@cox.net> |
|---|---|
| First post | 2011-12-30 12:14 +0000 |
| Last post | 2011-12-30 12:14 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Efficient way to read binary data line-by-line Frank Iannarilli <frankeye@cox.net> - 2011-12-30 12:14 +0000
| From | Frank Iannarilli <frankeye@cox.net> |
|---|---|
| Date | 2011-12-30 12:14 +0000 |
| Subject | Re: Efficient way to read binary data line-by-line |
| Message-ID | <jdk9vn$8dn$1@smc.vnet.net> |
Leonid is spot-on with the sequential nature of BinaryReadList. But BinaryRead is EXTREMELY inefficient compared to BinaryReadList (at least for version 8.0.1). I just took a look at why, and it is apparently because the result from BinaryRead is NOT in PackedArray format (per `Developer`PackedArrayQ), even for a 65K-sized read request. OTOH, BinaryReadList returns a payload as a PackedArray, which implies its conversions from Bytes to requested type will be MUCH faster.
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web