Closed guggero closed 1 year ago
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
connmgr/connmanager.go | 2 | 86.62% | ||
wire/msgaddrv2.go | 16 | 51.72% | ||
wire/netaddressv2.go | 20 | 74.45% | ||
<!-- | Total: | 38 | --> |
Totals | |
---|---|
Change from base Build 4163994991: | -0.05% |
Covered Lines: | 26619 |
Relevant Lines: | 48204 |
The default script builder allocates 500 bytes of memory for each script. That is quite large for most applications and therefore wastes a lot of memory when only small scripts are created. To avoid breaking backward compatibility, we add a new functional option to the NewScriptBuilder function that allows the user to specify the initial allocation size.
cc @Roasbeef, @Crypt-iQ.