The -optimize flag causes a .g.cpp file to be generated that enables the projection to call directly into the implementation. However, it should be calling into the factory rather than the class to enable factory implementations to be used. The factory always forwards to the class (by default) so it would in no way prevent existing usage nor would it impact performance since it is all inlined.
The -optimize flag causes a .g.cpp file to be generated that enables the projection to call directly into the implementation. However, it should be calling into the factory rather than the class to enable factory implementations to be used. The factory always forwards to the class (by default) so it would in no way prevent existing usage nor would it impact performance since it is all inlined.