1
0
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:
David Schmenk
2025-02-14 15:51:15 -08:00
parent 99dffac141
commit cae889cffd
2 changed files with 2 additions and 6 deletions
Binary file not shown.
+2 -6
View File
@@ -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)