Problemas de desempenho do .NET OpenXML

Eu estou tentando escrever um arquivo do Excel de um servidor da Web do asp.net usando OpenXML. Eu tenho cerca de 2100 registros e está levando cerca de 20 a 30 segundos para fazer isso. De alguma forma eu posso fazer isso mais rápido? Recuperar as 2100 linhas do banco de dados leva uma fração de segundo. Não tenho certeza porque manipulá-los na memória levaria mais tempo.

Nota: ExcelWriter é nossa classe personalizada, mas todos os seus métodos são diretamente do código neste link,http://msdn.microsoft.com/pt-br/library/cc861607.aspx

<code>   public static MemoryStream CreateThingReport(List<Thing> things, MemoryStream template)
    {
        SpreadsheetDocument spreadsheet = SpreadsheetDocument.Open(template, true);
        WorksheetPart workSheetPart = spreadsheet.WorkbookPart.WorksheetParts.First();

        SharedStringTablePart sharedStringPart = spreadsheet.WorkbookPart.GetPartsOfType<SharedStringTablePart>().First();

        Cell cell = null;
        int index = 0;

        //create cell formatting for header text
        Alignment wrappedAlignment = new Alignment { WrapText = true };
               uint rowOffset = 2;

  foreach (Thing t in things)
        {
            //Received Date
            cell = ExcelWriter.InsertCellIntoWorksheet("A", rowOffset, workSheetPart);
            index = ExcelWriter.InsertSharedStringItem(t.CreateDate.ToShortDateString(), sharedStringPart);
            cell.CellValue = new CellValue(index.ToString());
            cell.DataType = new DocumentFormat.OpenXml.EnumValue<CellValues>(CellValues.SharedString);

            //Car Part Name
            cell = ExcelWriter.InsertCellIntoWorksheet("B", rowOffset, workSheetPart);
            index = ExcelWriter.InsertSharedStringItem(t.CarPart.Name, sharedStringPart);
            cell.CellValue = new CellValue(index.ToString());
            cell.DataType = new DocumentFormat.OpenXml.EnumValue<CellValues>(CellValues.SharedString);

  rowOffset++; 
   }

 workSheetPart.Worksheet.Save();

        spreadsheet.WorkbookPart.Workbook.Save();
        spreadsheet.Close();

        return template;
</code>

questionAnswers(4)

yourAnswerToTheQuestion