-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In `slayers.SCION.DecodeFromBytes`, we allocate a new path for the correct path type on every invocation. This negates the advantages of recycling the layer object. Introduce a "recycling bin" for paths that can be reused in the SCION layer's DecodeFromBytes. This is only used when explicitly enabled, as it only makes sense if the layer is really reused for parsing. This opt-in also avoids issues with tests that deep-compare the SCION layer with an expected value where this recycling bin is empty.. Closes #4147 GitOrigin-RevId: cd7c81e4e062822bcc948eae4363c9544721f4d0
- Loading branch information
Showing
3 changed files
with
40 additions
and
2 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