CosmWasm / serde-json-wasm

serde_json for Wasm programs (small, deterministic, no floats)
Apache License 2.0
30 stars 15 forks source link

ser: don’t unnecessarily allocate a String when serialising a character #61

Closed mina86 closed 1 year ago

mina86 commented 1 year ago

Use on-stack buffer to encode a character rather than allocating a new String. It’s faster and more memory-efficient.

mina86 commented 1 year ago

Again, this is just extracted from #58