Re: even better coerce to record with usrf
Re: even better coerce to record with usrf
- Subject: Re: even better coerce to record with usrf
- From: email@hidden (Michael Sullivan)
- Date: Mon, 17 Dec 2001 11:47:32 -0500
- Organization: Business Card Express of Connecticut
Arthur Knapp writes:
>
Or does it... ;-) ;-) ;-)
>
property kUsrfLongHeader : ({{a:0}} as string)'s text 1 thru -2
>
on AsciiNumber(c)
>
return a of ((kUsrfLongHeader & c) as record)
>
end AsciiNumber
>
on AsciiCharacter(n)
>
return ({{a:n}} as string)'s item -1
>
end AsciiCharacter
Oh, duh -- of course! Get the header building crap out of the loop and
it becomes much faster. And also makes for nice simple functions.
Good job, thanks.
I'll test later, but if my sense of the algorithm is correct, this
should roughly halve the time of a couple of my quark scripts that take
forever. Or better if tell events take less time than SA calls.
Michael
--
Michael Sullivan email@hidden
Business Card Express of Connecticut Thermographers to the Trade
"You hate your job -- why didn't you say so? There's a support group
for that. It's called everybody; they meet at the bar." -Drew Carey