I have a program that inserts data in excel and creates graphs. All the "number operations" are done in the program (with linq), so excel is only used for creating graphs. The final excel has around 300 worksheets (50 sheet with data and 250 graphs). And here is the performance problem. While the operations while linq and regex are very quickly, excel takes more than 4 minutes in generating all the graphs. I thought about parallel extensions and split the graphs in 5 excel files.
My question is if I´m losing my time. I mean: 250 graphs in 4 minutes is like 1 second per graph. Should excel in parallel generate graphs quicker than that? I´ve also noticed that excel (as most programs), works slower when the file is larger. If you have an excel of 10MB and inserts a graph it takes 1 second, and if you have an excel of 10KB it inserts at the moment (may be it´s only my impression...).
And if the answer is I should use parallel extensions, should I work with the same excel application and different excel files or better a different excel application for each file?