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:
@@ -1,6 +1,6 @@
|
|||||||
package position
|
package position
|
||||||
|
|
||||||
const DefaultBlockSize = 1024
|
const DefaultBlockSize = 50
|
||||||
|
|
||||||
type Pool struct {
|
type Pool struct {
|
||||||
block []Position
|
block []Position
|
||||||
|
|||||||
Reference in New Issue
Block a user