There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
[UpForGrabs] [Performance] Reduce start up time by loading finished Code First models from a persistent cache
Building and compiling large models using the Code First pipeline can be expensive in terms of start up time. Several pieces are coming together that could allow us to serialize the output of Code First (including the O-C mapping) into an XML artifact
and then to deserialize it directly on subsequent runs.
Creating an efficient and completely reliable way of verifying that the serialized version of the model actually matches the Code First model doesn't seem feasible, but there are simple heuristics, e.g. checking for file timestamps of the assembly containing
the model and the timestamp of the XML artifact that should work reasonably well in common scenarios.
Initial tests with a hacky prototype show that start up time of a model with 100 entities can do down from 8 seconds to 2 seconds using this approach.