Re: benefits of dimensioned array over dynamic



"Frank Winans" <fwinans@xxxxxxxxxxxxx> wrote in
news:1387ol73alunj3e@xxxxxxxxxxxxxxxxxx:

"Joe" wrote
yacadoo wrote
Should I switch
to using a work file if my dynamic array gets over X number of
attribute marks long or X number of bytes?



One other option you might consider: Change the dynamic array to a
dimensioned array. Some environments allow you to dimension on the
fly (i.e., MAX = 200; DIM D.ARRAY(MAX)).


I most wholeheartedly agree; it is most gratifying how much faster an
app runs when you quit using dynamic arrays that you tend to find
growing beyond, say, 100 kb or 1 mb.

Indeed. The entire dynamic array is a single variable whereas each
element of a dimensioned array is a single variable.
.



Relevant Pages

  • Re: Trying to matread in a subroutine...
    ... Just how much data manipulation is going to happen with the data that you ... I would use a dimensioned array in situations where I would have the record ... processing speed between the dynamic array and dimensioned array is close to ... I was hoping the database could do the dirty work of sizing ...
    (comp.databases.pick)
  • Re: benefits of dimensioned array over dynamic
    ... to using a work file if my dynamic array gets over X number of ... attribute marks long or X number of bytes? ... One other option you might consider: Change the dynamic array to a ... element of a dimensioned array is a single variable. ...
    (comp.databases.pick)
  • benefits of dimensioned array over dynamic
    ... to using a work file if my dynamic array gets over X number of ... attribute marks long or X number of bytes? ... One other option you might consider: Change the dynamic array to a ... dimensioned array. ...
    (comp.databases.pick)
  • Re: When should I switch from a dynamic array to a work file?
    ... when deciding to use a dynamic array vs a work file. ... 001 open "customers" to customers ... 001 execute 'constructionProgram' capturing xmlMegaItem ...
    (comp.databases.pick)
  • Re: When should I switch from a dynamic array to a work file?
    ... I am new to Pick and have a question about good programming practices ... when deciding to use a dynamic array vs a work file. ... Some environments allow you to dimension on the fly ...
    (comp.databases.pick)