Int, Real, Bool and String literals all cause a stack allocation when they are encountered in the program: The PValue around them needs to be instantiated. What if, instead, the CIL compiler generates a class that provides "singleton" PValues for all literals in an application?
Is that more performant? Less performant? Is it feasible in an extensible manner?
Int, Real, Bool and String literals all cause a stack allocation when they are encountered in the program: The PValue around them needs to be instantiated. What if, instead, the CIL compiler generates a class that provides "singleton" PValues for all literals in an application?
Is that more performant? Less performant? Is it feasible in an extensible manner?