Joe, You hit the nail on the head. I am doing this for performance reasons. There are currently less than 20 hold codes (much less actually, currently using 4 so I defined the array(s) as 20. Without doing something along the lines that I described then I would have to go out and read the table file for each hold transaction rather than loading the array one time and doing a lookup for each hold transaction (to get corresponding code). I should always get a hit on the table (after loading). Please let me know if you think that I am missing something..... --- Joe Pluta <joepluta@PlutaBrothers.com> wrote: > Richard, one quick question: are you doing this for > performance reasons? > That is, are you caching data in order to avoid > doing reads on the file? > > If not, I'd be interested to know why you are doing > this, since it can cause > maintenance headaches down the road - you must > change the program if the > number of entries ever exceeds the size of your > array. > > If you *are* doing this for performance, will there > be a significant number > of times when you get a "miss" rather than a "hit"? > If the answer is yes, > you might want to "backload" the arrays; this can > substantially reduce your > processing time. Let me know and I'll go into this > a little further. > > Joe > > > -----Original Message----- > > From: Richard Reeve > > > > Thanks to all who responded. This list is > certainly a > > life saver. > > > > Happy Holidays to all. > > > > Rich > > _______________________________________________ > This is the Midrange Systems Technical Discussion > (MIDRANGE-L) mailing list > To post a message email: MIDRANGE-L@midrange.com > To subscribe, unsubscribe, or change list options, > visit: > http://lists.midrange.com/cgi-bin/listinfo/midrange-l > or email: MIDRANGE-Lfirstname.lastname@example.org > Before posting, please take a moment to review the > archives > at http://archive.midrange.com/midrange-l. > ===== __________________________________________________ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.yahoo.com
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.