I agree,

as I said in the previous, the Loop within Witango is really slow, at first
I thought it was due to manipulating the data from the database, but this
exercise bring the point out more clearly for me.

The reason for changing the function to math had nothing to do with the
looping issue; It was just one of my many "I am going to figure this if it
takes me all night"

This helper is cool :-)

Ben Johansen - http://www.pcforge.com
-Authorized WiTango Reseller
 http://www.pcforge.com/WitangoGoodies.htm
-Authorized Alt-N Reseller
 http://www.pcforge.com/AltN.htm

-----Original Message-----
From: Robert Garcia [mailto:[EMAIL PROTECTED]
Sent: Friday, July 04, 2003 1:35 AM
To: [EMAIL PROTECTED]
Subject: Re: Witango-Talk: A Real Test (Was Boosting ...)


If you are going to use the divide by week algorithm, I think you would
have to figure a way to count leap years.

But I digress, I never intended to have the best method for counting
weekdays. I am just looking for ways to process data quicker on
witango, especially with data intensive operations and loops. Your
initial algorithm was a great example to duplicate  and test my
thoughts, comparing apples to apples.

In that example, passing the process off to the RB App was 100x faster.
That is a chunk of change.

I heard back from Witango support and hopefully I will get some more
info on java beans, but I don't see that as a long term solution for
me. But then again, I will make that decision when I see how it
performs, and how easily I can pass data back and forth, and build java
classes.

The reason I would like to figure a way to integrate Witango and RB, is
that I have built a huge framework with RB, and I have created a ton of
reusable methods and classes that range from datamining to image
manipulation to text parsing xml parsing creation, and the list goes on.

Imagine a user uploading an image, and the image passed over to the
helper and scaled, thumbed and shadowed, and either passed back, or
placed at a desired location extremely fast. My methods use the
Quicktime API, so they are fast and optimized for each platform. And
you don't have to deal with imageMagick. There are many other uses.
Right now I am working on compiling some intensive reports through a
web interface. They currently choke witango, but If I pass the process
to the RB helper, I can get it done.

Anyway, time for bed, happy 4th.

Robert.



On Friday, July 4, 2003, at 01:07  AM, Ben Johansen wrote:

> 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
>
>

--

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

Reply via email to