Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output size configuration #307

Closed
artvel opened this issue May 19, 2022 · 2 comments
Closed

Output size configuration #307

artvel opened this issue May 19, 2022 · 2 comments

Comments

@artvel
Copy link

artvel commented May 19, 2022

Is it possible to configure the output of tynilib to achieve a result like "github.com/vmihailenco/msgpack/v5" with:

	var buf bytes.Buffer
	enc := msgpack.NewEncoder(&buf)
	enc.UseArrayEncodedStructs(true) // <---------
	enc.UseCompactInts(true) // <---------
	enc.UseCompactFloats(true) // <---------
	_ = enc.Encode(val)

to keep the output as low as possible..?

@klauspost
Copy link
Collaborator

UseArrayEncodedStructs is tuples.
UseCompactInts is already done.
UseCompactFloats... Funny - have a PR ready with that.

@klauspost
Copy link
Collaborator

Compact floats: #366

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

No branches or pull requests

2 participants