Subj : SlyVote To : Nightfox From : Digital Man Date : Tue May 19 2020 15:00:19 Re: SlyVote By: Nightfox to Digital Man on Tue May 19 2020 02:07 pm > Re: SlyVote > By: Digital Man to Nightfox on Tue Aug 08 2017 11:56 am > > DM> I'll play with tuning that in a couple of days. The first thing I > DM> notice is the reference to msgbase.total_msgs in your loop. It would be > DM> an improvement in speed to cache this property in a local variable as > DM> every time you read that property, the underlying code in the MsgBase > DM> class goes and reads the status of the message base: > > DM> var total_msgs = msgbase.total_msgs; > DM> for (var i = 0; !subBoardHasPolls && (i < total_msgs); ++i) > > DM> I tried this enhancement on Vert and it made only a slight improvement > DM> in performance, so that's not the main issue. It could be a problem in > DM> the get_msg_index method. I'll look into it. > > Hi DM - I know this is an old message I'm replying to - we were discussing > speed-related issues when I was initially working on SlyVote. I was curious > if you had ever found anything that might help the speed issues we had > noticed? I added the MsgBase.get_index() method about a year ago for use in msglist.js which enhanced the performance considerable. Have you tried using that? digital man This Is Spinal Tap quote #5: Nigel Tufnel: Authorities said... best leave it... unsolved. Norco, CA WX: 68.5øF, 44.0% humidity, 9 mph NNE wind, 0.00 inches rain/24hrs --- SBBSecho 3.11-Linux * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705) .