luser-dr00g / xpost

A PostScript interpreter in C
Other
93 stars 12 forks source link

Cache name objects to factor-out ternary-search-tree lookups in device functions #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. All graphics operations
2.
3.

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

Graphics operations have to perform dictionary lookups with
name objects, but the creation of the name object from a string
is an additional layer of processing which could be removed
from the graphics operators and placed in the initialization.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by luser.droog on 3 Dec 2013 at 3:17

GoogleCodeExporter commented 9 years ago
This is very similar to the use of opcode shortcuts in the interpreter's eval* 
functions which factors-out a linear lookup.

Original comment by luser.droog on 3 Dec 2013 at 3:18

GoogleCodeExporter commented 9 years ago

Original comment by luser.droog on 3 Dec 2013 at 3:50