-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize RAR's GetReferenceItems method (#5929)
* Iterate over dictionary once * Avoid unnecessary initializations * Set copy local more efficiently * referenceItem should have no metadata initially * Update larger metadata dictionary * Set fusionName at end * Slightly simplify referenceItem creation * Fix typos * Addition to setting fusionName at end * Shift other types of removed metadata later so they only have to be removed once nonForwardableMetadata?.Remove(ItemMetadataNames.*) is used to prevent the correct metadata value from being overwritten when metadata are re-added from nonForwardableMetadata. * Use ternary operators * Set items as a group
- Loading branch information
Showing
4 changed files
with
145 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.