mirror of
https://github.com/claunia/plist-cil.git
synced 2026-07-08 17:57:11 +00:00
[PR #60] [MERGED] Use Stream.WriteByte, and don't allocate a new byte array #96
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/claunia/plist-cil/pull/60
Author: @qmfrederik
Created: 6/12/2019
Status: ✅ Merged
Merged: 6/12/2019
Merged by: @claunia
Base:
master← Head:fixes/write-byte📝 Commits (2)
6fce83dUse Stream.WriteByte, and don't allocate a new byte array467c981Don't forget to increment count.📊 Changes
1 file changed (+1 additions, -3 deletions)
View changed files
📝
plist-cil/BinaryPropertyListWriter.cs(+1 -3)📄 Description
Stream has a
Stream.WriteByteoverload, so you don't need to create a new array just to write a single byte. Plus, throwaway arrays like this put pressure on the garbage collector.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.