mirror of
https://github.com/dschmenk/PLASMA.git
synced 2026-04-19 09:23:06 +00:00
Make better use of available memory in editor
This commit is contained in:
Binary file not shown.
+2
-6
@@ -400,13 +400,9 @@ def inittxtbuf#0
|
||||
if not strpool
|
||||
txtlinbuf = heapalloc(MAXLINESSIZE*2)
|
||||
cliplinbuf = heapalloc(MAXCLIPLINES*2)
|
||||
while isult(heapavail, strplsize)
|
||||
strplsize = strplsize - 4096
|
||||
loop
|
||||
if isult(heapavail - strplsize, 4096) // Keep at least 4096 free
|
||||
strplsize = strplsize - 4096
|
||||
fin
|
||||
strplsize = heapavail - 1024
|
||||
strplmapsize = strplsize / 128
|
||||
strplsize = strplmapsize * 128
|
||||
strpoolmap = heapalloc(strplmapsize)
|
||||
strpool = heapalloc(strplsize)
|
||||
memset(txtlinbuf, @nullstr, MAXLINESSIZE*2)
|
||||
|
||||
Reference in New Issue
Block a user