luser-dr00g / xpost

A PostScript interpreter in C
Other
98 stars 13 forks source link

Don't use precious 'ent's in 'saverec's! #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. runtest is running out of 'ent's.
2.
3.

What is the expected output? What do you see instead?

runtest executes the file testdraw.ps which performs some
relatively simple postscript drawing with pseudo-randomly 
generated points. It really ought to execute this program
without difficulty.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by luser.droog on 4 Dec 2013 at 12:47

GoogleCodeExporter commented 9 years ago
Oh. The solution I propose is to change the semantics of saving an allocation.

Instead of allocating an ent and fiddling pointers, the saverec would hold an 
ent
and an address and restore would copy the data back instead of exchanging 
addresses.

Restore would still need to allocate an ent to free the copy space.

Original comment by luser.droog on 4 Dec 2013 at 12:49

GoogleCodeExporter commented 9 years ago
I don't this this is worth the effort. Restore still needs to allocate an ent. 
So there's no real savings, just a delay.

Original comment by luser.droog on 21 Feb 2015 at 10:18