cocoa touch - Reserve contiguous space in memory with NSMutableData -


how can force nsmutabledata reserve contiguous memory, in same section? have fair amout of data arriving piece piece, , performance not satisfactory. total size of data constant.

nsmutabledata should store data contiguously. internally using "stretchy" buffer resized realloc. can create [nsmutabledata datawithlength:];

why not use nsdata if size constant?

also why worrying nsmutabledata performance. did instruments profile show performance problem?


Comments