dbTalk Databases Forums  

Dimensioned array with variable

comp.databases.pick comp.databases.pick


Discuss Dimensioned array with variable in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #51  
Old   
Excalibur21
 
Posts: n/a

Default Re: Dimensioned array with variable - 07-22-2011 , 07:29 PM






On Jul 21, 12:50*pm, Kevin Powick <nos... (AT) spamless (DOT) com> wrote:
Quote:
On 2011-07-20 22:26:32 -0400, Kevin Powick <nos... (AT) spamless (DOT) com> said:

On 2011-07-20 19:00:31 -0400, Excalibur21 <pgmcmur... (AT) gmail (DOT) com> said:

Perhaps you can demonstrate where using dynamic large arrays is faster
than dimensioned.

I already have. *Look through this thread.

Note that Google Groups still seems to be delayed on getting all CDP
posts. *It also seems that in some instances posts are missing
altogether. * I use a NNTP server, not Google.

Actually, a review of the thread shows that you already replied
directly to a post where I provided a code sample that demonstrated a
large dynamic array outperforming a dimensioned one.

I don't really want to keep going on about this. *The facts are in and
there's nothing left to prove. *I'm really glad that Kevin King made us
all look into this further.

Once again, all I'm saying is that the programming task at hand should
dictate the coding technique chosen to ensure optimal performance.

--
Kevin Powick
Sorry Kevin my bias showing again :-) I meant real world examples as
they are what I am working with in all my tests.
I too am grateful for the discussion and totally agree with using the
right tool for the job. In the case of D3 optimisation is something
that can strongly affect the tool chosen.
Somewhere in the thread I saw something about INSERTING into a
dimensioned array. Definitely not something I have ever done nor
would I recommend it but extremely easy as all dimensioned array
elements are themselves dynamic arrays. For example this fudge
try
001 open '','test' to tesf else stop
002 dim new(5)
003 for a = 1 to 5
004 new(a) = a
005 next a
006 new(3) := @am:"shove this in"
007 matbuild newdyn from new using @am
008 chk = dcount(newdyn,@am)
009 for a = 1 to chk
010 crt newdyn<a>
011 next a

:run mmbp try
1
2
3
shove this in
4
5
:
Guaranteed to screw up any file anywhere!
This feature is of course why Pick/D3 always overflow extra elements
into the last element of a dimensioned array rather than the nasty U2
method of array position zero.
By the way thanks again for the system(12) tip. Would you mind
telling me which NNTP server you use as I am not wrapt with Google and
Outlook Express/Windows Mail is a moving target.
Peter McMurray

Reply With Quote
  #52  
Old   
Kevin Powick
 
Posts: n/a

Default Re: Dimensioned array with variable - 07-22-2011 , 10:26 PM






On 2011-07-22 20:29:35 -0400, Excalibur21 <pgmcmurray (AT) gmail (DOT) com> said:

Quote:
Would you mind
telling me which NNTP server you use
AIOE.ORG has worked well for me. It's free, and there are usage
limitations, but they've never been a problem for the little amount I
use.

--
Kevin Powick

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.