Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: To-pair vs as-pair

From: nitsch-lists:netcologne at: 2-Jan-2003 4:30

Anton wrote:
>Yes, as-pair is quite useful. >Keep in mind that if you use these >functions in a tight loop that draws >some graphics, for example, you can >
[snip]
> >You can see that as-pair makes three mezzanine function calls. >This will slow you down in a tight loop, so instead, >you could just do everything yourself: > > to pair! reduce [to integer! x to integer! y] >That will be much faster. >(And also backwards compatible to last full version of view 1.2.1) >
if speed matters i would drop the reduce p: 0x0 p/x: 3.8 p/y: 5.3 probe p in an expression you can use p2: (p: 0x0 p/x: 3.8 p/y: 5.3 p)