I use the following code to load a chart from about 20 different template disk files, the system will be slow when many users access these template files,
I think maybe I can cache these files to memory, but I don't know how to do, and more, is there other better way?
Thanks!
using (Stream s = File.Open(PublicPar.PathOfTemplate + projectTemplateID + ".xml", FileMode.Open, FileAccess.Read, FileShare.Read))
{
Chart1.Serializer.Load(s);
}