Quantcast
Channel: Aspose.Email Product Family
Viewing all articles
Browse latest Browse all 1367

Convert to html and MHtml is much slower for some files.

$
0
0
Hi,

Aspose.Email 17.2 is much slower than Aspose.Email 16.10 when converting some files to html or mhtml.

Here is an example for 5 converts. The time is in milliseconds:
file: "96778_Umlauts_MuchSlower.msg"
16.10
t0:Aspose.Convert - time=1237
t1:Aspose.Convert - time=26
t2:Aspose.Convert - time=32
t3:Aspose.Convert - time=26
t4:Aspose.Convert - time=27

17.2
t0:Aspose.Convert - time=2277
t1:Aspose.Convert - time=1126
t2:Aspose.Convert - time=1072
t3:Aspose.Convert - time=1057
t4:Aspose.Convert - time=1052

The source code looks like this:

            var sw = Stopwatch.StartNew();

            var doc = MailMessage.Load(inputPath);

            // http://www.aspose.com/community/forums/thread/687431.aspx
            doc.PreferredTextEncoding = System.Text.Encoding.UTF8;

            doc.Save(inputPath + ".mhtml", SaveOptions.DefaultMhtml);

            Console.WriteLine($"t{testId}:Aspose.Convert - time={sw.ElapsedMilliseconds}");

Are you aware of this regression? What is the reason for it? 

Best Regards,
Vassil

Viewing all articles
Browse latest Browse all 1367

Trending Articles