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