perf: reduce memory usage by reducing amt of position's created

The positions created were taking GB's of memory and were not being
GC'ed.
This commit is contained in:
Laytan Laats 2022-09-09 00:40:11 +02:00
parent 4f5cd69ae9
commit 86c10ca380

View File

@ -1,6 +1,6 @@
package position package position
const DefaultBlockSize = 1024 const DefaultBlockSize = 50
type Pool struct { type Pool struct {
block []Position block []Position