summaryrefslogtreecommitdiffstats
path: root/src/bytearray.h
AgeCommit message (Collapse)AuthorFilesLines
2018-12-10bplist: Improve performance and memory usage when writing binary plistGravatar Nikias Bassen1-1/+1
2017-02-15xplist: Improve writing of large PLIST_DATA nodes by growing buffer in advanceGravatar Nikias Bassen1-0/+1
Instead of letting the buffer grow by just the amount of bytes currently transformed to base64 - which is basically line by line - we now calculate the size of the output blob in advance and grow the buffer accordingly. This will reduce the amount of reallocs to just one, which is especially important for large data blobs. While this is a general improvement for all platforms, it is on platforms like Windows where realloc() can be REALLY slow; converting a 20mb blob to XML can easily take up to a minute (due to the several hundred thousand calls to realloc()). With this commit, it will be fast again.
2014-10-03Avoid exporting non-public symbolsGravatar Nikias Bassen1-4/+3
2011-05-27Make libplist glib freeGravatar Nikias Bassen1-0/+36