Jon Marlin
Builder, Coder, RL & SL
Join date: 10 Mar 2005
Posts: 297
|
05-15-2005 15:31
Kelley Linded posted a reply to my message regarding how to best script for checking email: From: Kelly Linden In 1.6.4 every call of llGetNextEmail is a query on the database to check if new mail has arrived. This function is rate limited to once every 5 seconds per object - asking more often will yield no better results. Asking at a rate of once every 10 seconds will cut the number of database queries in half.
In 1.6.5 the back end of llGetNextEmail has been optimized to only query the database when there actually is mail waiting. The information about pending mail has been moved to the simulator so that when a script asks for email the simulator knows whether there is mail waiting or not. This means that in 1.6.5 (due next week hopefully) it will not matter how often email is checked, from a database load standpoint. __________________ - Kelly Linden
This is fantastic news -- it all makes sense now. Pushing this information to the simulators should (a) make our vendors and other objects that communicate with email much more responsive (once re-scripted), and (b) reduce enourmously the load on the main database. This news has given me a large dose of confidence that the 1.6.5 update will put things right. I think LL is (justifiably) reluctant to say for sure that this will fix it. I do performance work (coding) for a living, and this absolutely makes sense to me. I think we're all going to see a big difference come the middle of this week... - Jon
|
Toneless Tomba
(Insert Witty Title Here)
Join date: 13 Oct 2004
Posts: 241
|
05-15-2005 23:17
From: someone The information about pending mail has been moved to the simulator so that when a script asks for email the simulator knows whether there is mail waiting or not Moved to the simulator... hmmm. I wonder if llGetNextEmail() will start making a bigger impact on the sims, create more lag? (crosses his fingers)
|
Legith Fairplay
SL Scripter
Join date: 14 Jul 2004
Posts: 189
|
05-16-2005 00:02
From: Toneless Tomba Moved to the simulator... hmmm. I wonder if llGetNextEmail() will start making a bigger impact on the sims, create more lag? (crosses his fingers) If implemented right this should be no worse than looking up your owner's id... (quick look in local database) assuming the usual state of "no new mail" thus I expect (hope) the timer is the bigger source of lag. and a timer really dose only have a trivial amount (but unfortunately not zero) lag
|
Jon Marlin
Builder, Coder, RL & SL
Join date: 10 Mar 2005
Posts: 297
|
05-16-2005 02:54
From: Legith Fairplay thus I expect (hope) the timer is the bigger source of lag. and a timer really dose only have a trivial amount (but unfortunately not zero) lag And, since we're already invoking the hit of the timer, and since the simulator probably has to wait on the response from the main database (since they didn't anticipate the load), this may (wild speculation here) help sim lag a huge amount also... Wouldn't that be funny... - Jon
|
Laukosargas Svarog
Angel ?
Join date: 18 Aug 2004
Posts: 1,304
|
05-16-2005 03:06
As i said in another post, there's really no good reason not implement a got_email() event in future upgrades. That would eliminate the timer too. In fact having gone through the archives I see I'm not the first to call for this.
|