4 ms·
That's wild given that Go makes it harder to read a whole file than read a block at a time.
by morelisp 4y ago
That's wild given that Go makes it harder to read a whole file than read a block at a time.
- nasretdinov 4y agoOh, absolutely not! ioutil.ReadFile and you're done!
- Patrickmi 4y agoAt least we know the problem and the solution to it
- skulk 4y agoHere is where the file is read in its entirety. https://github.com/koki-develop/gat/blob/c16dbf999b89b46ed17f5acf94e2250a97b8dcfc/pkg/printer/printer.go#L85-L88 https://github.com/koki-develop/gat/blob/c16dbf999b89b46ed17...