Okay, the requirement is to build a Delphi form descendant from a pre-existing form class adding to it a set of component definitions sent to the Delphi Application in a stream.
The Delphi Application has no prior knowledge on what these components are and where they will be placed.
It does however receive a form name and form version for these components.
The process is already running and working.
But speed is a critical factor and there is a need to increase performance.
As a result of this, my idea is to build a new form class, then store it locally in a component resource file.
Using WriteComponentResFile and ReadComponentResFile functions.
Only when the version of the set of component definitions change then to recreate this resource.