5 ms·
It seems that go library is ok with you paying the performance price when using io.Reader/io.Writer on memory structures. You can write clean idiomatic code, b
by hkpack 1y ago
It seems that go library is ok with you paying the performance price when using io.Reader/io.Writer on memory structures.
You can write clean idiomatic code, but it won’t be the fastest. So for maximum results you should always do everything manually for your use case: i.e. don’t use additional readers/writers and operate on []byte directly if that is what you are working with.
I think it is mostly a good thing - you can quickly write simple but slower code and refactor everything later when needed.