Apache Daffodil newby...
Trying to save start up time with an Apache Daffodil message parsing application.
Just wanted to know if it were possible (or feasible) to pre-compile an Apache Daffodil "DataProcessor" object (with a designated schema, of course) - and then to use it as a build dependency for a separate application using Daffodil parsing.
---I.e., versus awaiting the schema compile at runtime
The Daffodil API does provide methods to serialize and deserialize a
DataProcessorvia theDataProcessor#saveandCompiler#reloadmethods.For example, to save the DataProcessor to a file:
To reload that file to a data processor:
That example is for using a file, but the API supports saving to any
WritableByteChanneland reloading from anyReadableByteChannel.There aren't any existing Maven/Gradle plugins that automatically do this that I am aware of, but the compile/save could be put in a resource generator, and then reload called at runtime to load the resource.