Workbook.Save very slow with rich text formatting

Hello,
We observed that saving a workbook with rich text formatting using Aspose.Cells is very slow.
Please see the below sample code which creates 100K cells with part of the text coloured in red:

public sealed class Program
{
    private static void Main(string[] args)
    {
        var sw = Stopwatch.StartNew();
        using var workbook = new Workbook();
        for (int row = 0; row < 1000; row++)
        {
            for (int col = 0; col < 100; col++)
            {
                var cell = workbook.Worksheets[0].Cells[row, col];
                cell.PutValue($"Row{row}Col{col}");
                cell.Characters(0, 4).Font.Color = Color.Red;
            }
        }
        workbook.Save("test1.xlsx");
        Console.WriteLine($"Total Execution Time: {sw.ElapsedMilliseconds}ms");
    }

} 

The sample takes 50s to execute:

Total Execution Time: 49930ms

As soon as we remove the rich text formatting line:
cell.Characters(0, 4).Font.Color = Color.Red;
the execution time is down to 641ms:
Total Execution Time: 641ms.

What seems to be the issue? Is there any way to optimise this?

@draftable,

After an initial test, I was able to reproduce the issue as you mentioned by using your sample code segment. I found Workbook.Save is very slow with rich text formatting.

We need to evaluate your issue in details. We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CELLSNET-56099

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@draftable
This is to inform you that your issue (“CELLSNET-56099”) has been resolved.
It takes about 2-3s to save the file.
The fix/enhancement will be included in our upcoming release (Aspose.Cells v24.7) which is due in the second week of July this month. You will be notified when the next version is released.

Wow, that’s a great turnaround time. We appreciate it. Looking forward to the release.

@draftable
You are welcome. Once the version v24.7 is released, we will notify you promptly.

The issues you have found earlier (filed as CELLSNET-56099) have been fixed in this update. This message was posted using Bugs notification tool by johnson.shi