Skip to content

Improve how byte arrays are created in ZipHelper.GetEncodedTruncatedBytesFromString #64767

@carlossanlop

Description

@carlossanlop

Follow up of PR #59442 (comment)

The byte array allocations can be potentially improved with ArrayPool.

This method is consumed by the Comment properties in ZipArchive and ZipArchiveEntry.

@jozkee @adamsitnik

Metadata

Metadata

Labels

area-System.IO.CompressionenhancementProduct code improvement that does NOT require public API changes/additionshelp wanted[up-for-grabs] Good issue for external contributorsin-prThere is an active PR which will close this issue when it is mergedtenet-performancePerformance related issue

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions