Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: Slowly working when taking references Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Rinkamearikin
Newbie
Newbie


Joined: 29 January 2015
Location: Russian Federation
Online Status: Offline
Posts: 5
Posted: 29 January 2015 at 8:25pm | IP Logged Quote Rinkamearikin

Code:

foreach (Envelope e in envelopes)
{
string header = e.MessagePreview.Headers["References"];
//or
string header = e.MessagePreview.References;
   //somecode here ...
}
in profile seen's that it's very slowly operation becouse:
Name     Inclusive %     Exclusive %
System.Globalization.EncodingTable.GetCodePageFromName(string)     27,77     27,77

I wanna some fasted working:) Can you help me with this?
Back to Top View Rinkamearikin's Profile Search for other posts by Rinkamearikin
 
Rinkamearikin
Newbie
Newbie


Joined: 29 January 2015
Location: Russian Federation
Online Status: Offline
Posts: 5
Posted: 29 January 2015 at 10:46pm | IP Logged Quote Rinkamearikin

Back to Top View Rinkamearikin's Profile Search for other posts by Rinkamearikin
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 30 January 2015 at 3:36am | IP Logged Quote Alex

Good point. We'll optimize this in subsequent releases.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Rinkamearikin
Newbie
Newbie


Joined: 29 January 2015
Location: Russian Federation
Online Status: Offline
Posts: 5
Posted: 01 February 2015 at 7:09pm | IP Logged Quote Rinkamearikin

Can you tell me when I can to expect issue fix?
Back to Top View Rinkamearikin's Profile Search for other posts by Rinkamearikin
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 02 February 2015 at 2:26am | IP Logged Quote Alex

ETA is not assigned yet. Most likely, in a few weeks.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 12 February 2015 at 11:49am | IP Logged Quote Alex

The fix is ready. You can take the updated dlls (.net 2/.net 4 editions) from http://www.afterlogic.com/updates/mailbee_net.zip

Does it help?

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Rinkamearikin
Newbie
Newbie


Joined: 29 January 2015
Location: Russian Federation
Online Status: Offline
Posts: 5
Posted: 23 March 2015 at 9:53pm | IP Logged Quote Rinkamearikin

I'm returned. So, your library go faster, but when in header collection used string compare it's have lags. May be if use in string compare CultureInfo.Ordinal it's should be faster?

Back to Top View Rinkamearikin's Profile Search for other posts by Rinkamearikin
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 24 March 2015 at 3:16am | IP Logged Quote Alex

What kind of optimizations are you talking about? Do you have a message where taking References takes seconds or so? Because if it's fast already, we'd better spend time on adding features than on making faster that things which are fast anyway and nobody will ever notice 0.01% improvement in total time of downloading the entire message.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Rinkamearikin
Newbie
Newbie


Joined: 29 January 2015
Location: Russian Federation
Online Status: Offline
Posts: 5
Posted: 24 March 2015 at 6:11pm | IP Logged Quote Rinkamearikin

Can I write you for e-mail?
Back to Top View Rinkamearikin's Profile Search for other posts by Rinkamearikin
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 24 March 2015 at 9:35pm | IP Logged Quote Igor

You can contact us via HelpDesk (recommended) or email us at support at afterlogic dot com.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 26 March 2015 at 8:35am | IP Logged Quote Alex

It turned out that the client app accesses MailBee.NET library in 600 iterations for every message (and about 340,000 times total for 550 messages), not once per message. Refactoring the app to avoid such many excessive calls to MailBee.NET will eliminate the performance issue.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide