Try to benchmark (use big repeat loops and calculate the time spent) the different 
solutions, it'll give you your answer!

------------------------------------------
     Laurent BRIGAUT
     Director of Operations
     Integration New Media, Inc.    
     http://www.IntegrationNewMedia.com
     
     Creators of PDF Xtra, 
     V12 Database Engine
     GoldenGate Database Connector
------------------------------------------ 


> -----Original Message-----
> From: Watson, Christopher [mailto:[EMAIL PROTECTED]]
> Sent: 17 juillet, 2002 14:42
> To: 'Lingo-L'
> Subject: <lingo-l> Efficiency Questions
> 
> 
> In conjunction with my SkySVG project, some items that beg 
> the question
> "Which is best?" Meaning, "best" from a speed and efficiency 
> perspective.
> 
> 1. Accessing character ranges
> 
> lsRAh = lsInputLine.char[6..9]
> 
> -OR-
> 
> lsRAh = chars(lsInputLine, 6, 9)
> 
> -OR-
> 
> lsRAh = char 6 to 9 of lsInputLine
> 
> 2. Returning two values from a function
> 
> on plotFunc pfRAdeg, pfDEdeg
>   -- calculations for lfPlotRA and lfPlotDE
>   return point(lfPlotRA, lfPlotDE)
> end
> 
> lpPlotRADE = plotFunc(lfRAdeg, lfDEdeg)
> lfPlotRA = lpPlotRADE.locH
> lfPlotDE = lpPlotRADE.locV
> 
> -OR-
> 
> on plotFunc pfRAdeg, pfDEdeg
>   -- calculations for lfPlotRA and lfPlotDE
>   return [lfPlotRA, lfPlotDE]
> end
> 
> lpPlotRADE = plotFunc(lfRAdeg, lfDEdeg)
> lfPlotRA = lpPlotRADE[1]
> lfPlotDE = lpPlotRADE[2]
> 
> -OR-
> 
> on plotFunc pfRAdeg, pfDEdeg
>   -- calculations for lfPlotRA and lfPlotDE
>   return [#h: lfPlotRA, #v: lfPlotDE]
> end
> 
> lpPlotRADE = plotFunc(lfRAdeg, lfDEdeg)
> lfPlotRA = lpPlotRADE.h  -- or lpPlotRADE[#h]
> lfPlotDE = lpPlotRADE.v  -- or lpPlotRADE[#v]
> 
> Christopher Watson
> [To remove yourself from this list, or to change to digest 
> mode, go to http://www.penworks.com/lingo-l.cgi  To post 
> messages to the list, email [EMAIL PROTECTED]  (Problems, 
> email [EMAIL PROTECTED]). Lingo-L is for learning and 
> helping with programming Lingo.  Thanks!]
> 
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to