TypeScript icon indicating copy to clipboard operation
TypeScript copied to clipboard

Experiment - monomorphic node/type/signature

Open dragomirtitian opened this issue 8 months ago • 46 comments

Experiment to make several objects monomorphic by keeping the common properties in a single object shape and moving all other properties to a separate object and using accessors to preserve compatibility with existing code.

Local improvements seem promising, building TSC/compiler: ~-20% in time with ~+10% in memory.

Code is rough around the edges, just testing out as a proof of concept.

Note: This is the result of me and @acutmore bouncing ideas about improving access to Node.kind

dragomirtitian avatar Jun 19 '24 15:06 dragomirtitian