Commit Graph

6 Commits

Author SHA1 Message Date
a12c22587d Properly implement buffer pool
Some checks failed
Run Tests / Test (push) Failing after 18s
Benchmark BufferPool / RunBenchmarks (push) Failing after 19s
It wasn't reusing buffers, idiot idiot idiot...
2024-07-24 19:05:49 +02:00
f30680c26f Rework every uint8 to byte and rework every []byte to bytes.Buffer
Some checks failed
Benchmark BufferPool / RunBenchmarks (push) Failing after 17s
Run Tests / Test (push) Failing after 15s
I just learnt that uint8 and byte are the fucking same
And that bytes.Buffer is the thing to use
Idiot idiot idiot...
Live and learn
2024-07-24 18:48:12 +02:00
PhatPhuckDave
2759185dbb Refactor bufpool methods 2024-07-23 14:55:49 +02:00
PhatPhuckDave
a9827f10ce Rework bufpool to be a little more efficient, I hope 2024-07-23 14:55:33 +02:00
PhatPhuckDave
4ea320c784 Make bufpool use uint
I mean we can't have a pool of negative size?
2024-07-22 23:13:34 +02:00
PhatPhuckDave
c558e54750 Add a byte buffer pool 2024-07-22 23:05:05 +02:00