status-im / nim-faststreams

Nearly zero-overhead input/output streams for Nim
Apache License 2.0
125 stars 11 forks source link

`newString` slows down page creation #29

Closed arnetheduck closed 8 months ago

arnetheduck commented 2 years ago

newString is used throughout to initialize pages, zero-filling memory unnecessarily - newSeqUninitialized[byte] would be an option, but one has to be careful around setLen which also does zero-filling

arnetheduck commented 8 months ago

https://github.com/status-im/nim-faststreams/pull/50