Skip to content

Avoid NewMsgTx(); Deserialize() calls#2613

Merged
jrick merged 1 commit intodecred:masterfrom
jrick:newmsgtx
Feb 26, 2026
Merged

Avoid NewMsgTx(); Deserialize() calls#2613
jrick merged 1 commit intodecred:masterfrom
jrick:newmsgtx

Conversation

@jrick
Copy link
Member

@jrick jrick commented Feb 25, 2026

NewMsgTx preallocates input and output slices that Deserialize will immediately discard, causing unnecessary allocations.

NewMsgTx preallocates input and output slices that Deserialize will
immediately discard, causing unnecessary allocations.
@jrick jrick merged commit 1d35454 into decred:master Feb 26, 2026
2 checks passed
@jrick jrick deleted the newmsgtx branch February 26, 2026 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants