claunia / plist-cil

C#/.NET parser for Apple and GnuStep Property List (aka plist), based on Java's dd-plist
Other
54 stars 17 forks source link

ReadLengthAndOffset: Use out parameters instead of returning an array. #41

Closed qmfrederik closed 6 years ago

qmfrederik commented 6 years ago

This prevents having to allocate a new int[] array frequently. Results in a 37% performance increase on Linux and 6% on Windows. (There may be some noise on the results but the impact is positive either way 😄 ).

claunia commented 6 years ago

Prolly a leftover from Java conversion (they don't have out afaik) :stuck_out_tongue: