prevent aggressive DCE in MWE w/ TinyGo and cull fmt package (#196)

* cull fmt package use and prevent aggressive DCE in MWE example with TinyGo

* add noslog build tag and small reference section to README

* add memci

* fix ci

* whoops, forgot memci.json to gitignore

* whoops x2

* use noslog build tag

* don't go ham on removing fmt useful data

* remove old benchmarking CI
This commit is contained in:
Pat Whittingslow
2026-09-06 17:17:14 -03:00
committed by GitHub
parent d219daa2c4
commit d7f3924489
24 changed files with 306 additions and 220 deletions
+3 -6
View File
@@ -987,16 +987,13 @@ func (frm Frame) AppendString(b []byte) []byte {
bitlen := frm.LenBits()
b = append(b, frm.Protocol...)
if bitlen%8 == 0 {
b = append(b, " len="...)
b = strconv.AppendInt(b, int64(bitlen/8), 10)
b = internal.AppendStrDecimal(b, " len=", int64(bitlen/8))
} else {
b = append(b, " bits="...)
b = strconv.AppendInt(b, int64(bitlen), 10)
b = internal.AppendStrDecimal(b, " bits=", int64(bitlen))
}
iopt, err := frm.FieldByClass(FieldClassOptions)
if err == nil {
b = append(b, " optlen="...)
b = strconv.AppendInt(b, int64((frm.Fields[iopt].BitLength+7)/8), 10)
b = internal.AppendStrDecimal(b, " optlen=", int64((frm.Fields[iopt].BitLength+7)/8))
}
for _, err := range frm.Errors {
b = append(b, ' ')