Ideal Chunk Size for Writing Streamed Content to Disk on iPhone
问题 I am writing an app that caches streaming content from the web on the iPhone. Right now, I'm saving data to disk as it arrives (in chunk sizes ranging from 1KB to about 60KB), but application response is somewhat sluggish (better than I was expecting, but still pretty bad). My question is: does anyone have a rule of thumb for how frequent and large writes to the device memory should be to maximize performance? I realize this seems application-specific, and I intend to do performance tuning