This commit is contained in:
2024-05-14 12:10:58 +02:00
parent a9bb79b01c
commit 59911aebb9
645 changed files with 263320 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
package msgp
type RuntimeConfig struct {
// UnsafeZeroCopy will make strings point to the
// original msgpack buffers. This is unsafe because
// if the buffer changes the string will change/be
// invalid/not protected against re-use. But for
// processing and disposing of single messages, one-at-at-time,
// without re-using any part of a message (or making a copy of strings explicitly with copy()
// if you must) then we can avoid all allocations for strings.
UnsafeZeroCopy bool
}