Stream s = new MemoryStream(b);
p = new Presentation(s);
The new Presentation call is very expensive and takes about 3 seconds. I would like to cache the presentation in memory after construction. This cached presentation would be the model to be used on each of the other presentations to be created. Currently, I simply have a pointer to the actual object in cache and making changes to the object therefor reflects on the cached template.
Is there a way to clone the template in memory so it may be used as a model for each further generation?