idea for performance experiment: generate the classes out for optionals
Submitted by Kristof Szabados
Link to original bug (#568421)
Description
Currently the class representing optional fields is part of the runtime libraries of Titan, to save build time.
But it is not actually sure, that it does save build time. It saves some time on note generating a new class for each optional field. But on the C side as this is a templated class, the C/C++ compiler will have to instantiate am copy internally, with the actual template parameter inserted ... that might negate the saving shoped for. On the Java side this is not an issues( thank to generics), but might have an overhead during runtime, and prevent some JIT optimizations from happening (as for some situation the name of the class has to be added as a parameter and instantiated like that)
It might be worth an experiment to see, if generating the actual classes instead of the templates and generics for optionals would perform better in build and in execution time.
Version: 7.1.0