Hi Robert Re-Wrote the taf to using counting week and then factoring in start day of week and end day of weeks
Time Elapsed: 0.013 Seconds from 01/01/1910 to 12/31/2035 Total Days 46020 Total Weeks 6574 Start DOW 6 End DOW 1 Total Work Days = 32866 this one calcs 4 days less than yours, I checked mine a 1 month,1 year,3 years and 10 years and it was accurate, interesting though must be leap year issues between yours and mine. it doesn't involve a loop which has been your issue regarding looping through large datasets. the previous workdates#.taf used the looping. I will clean this up and post it to the goodies as a custom tag <@WEEKDAYS> or something like that. I just wanted have an all witango answer to the workdate issue and I still agree with you on the need for compiling on larger loops :-) Ben Johansen -----Original Message----- From: "Ben Johansen" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: Thu, 03 Jul 2003 21:25:38 -0700 Subject: Re: Witango-Talk: A Real Test (Was Boosting ...) > Hi Robert, > Runs Good using your Witango Helper > Ran on Laptop > 1.6GHz Pentium 4 512Meg Ram > > numDays 46020 > workDays 32870 > > Time Elapsed: 0.459 Seconds > > Good Job ;-) > > -----Original Message----- > From: Robert Garcia <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Date: Thu, 3 Jul 2003 19:16:57 -0700 > Subject: Witango-Talk: A Real Test (Was Boosting ...) > > OK, > > I just made a test that anyone can download and try. The files are at: > > http://public.bighead.net/workaytest/ > > There is a file for windows, and for Mac OS X. > > If you unarchive you will find various tafs and a tcf, a couple of > supporting files, and a compiled application writting in RealBasic. > > Load these on your witango server. For a benchmark, hit the > workdates1.taf (or 2 or 3) to get a time taken. All these three tafs > use Witango to do all of the processing. > > Now, launch the WitangoHelper(Test) app on your witango server. It has > a console, and that is it. It listens on port 8888 and handles only one > request at a time. Once it is started, hit the RBWorkDate.taf. This taf > passes the start and end date to the real basic app as an http request, > and outputs the results. > > The RB App has to parse the http request, then perform the calc, then > prepare a valid http response, and send the results back to Witango. > > On my server, the Witango tafs take about 15-16 seconds, the > RBWorkdate.taf takes less than a second. > > You can also play around and move the App to another computer, just > change the <@url> ip address in the taf to communicate. > > It is completely cross platform, you can use a Windows witango server > and the mac RB app, and vise versa or any combo. > > I still have a lot of work to bullet proof the frame work, so that > others could use it, but this should show its promise. > > Let me know what you think. > > -- > > Robert Garcia > President - BigHead Technology > CTO - eventpix.com > 2781 N Carlmont Pl > Simi Valley, Ca 93065 > ph: 805.522.8577 - cell: 805.501.1390 > [EMAIL PROTECTED] - [EMAIL PROTECTED] > http://bighead.net/ - http://eventpix.com/ - http://theradmac.com/ > > _______________________________________________________________________ > _ > TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf
