Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #725
| From | E®!k \\/!$$E® <nospam@nospam.com> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Replacing LV with bBrowser: much slower because of arrayserver |
| Date | 2011-04-06 16:52 +0200 |
| Message-ID | <903d14Fm1U1@mid.individual.net> (permalink) |
| References | (2 earlier) <35edp69tpvt0n7u2t24gsmioonp7q6btvs@4ax.com> <8vnvp4Fl4lU1@mid.individual.net> <bab4e17f-4cdb-4960-b3ec-93a65d4520a7@o20g2000yqk.googlegroups.com> <8vtchiFg6qU1@mid.individual.net> <f4cff452-d7dc-4d4b-b084-5d386e249dbc@w7g2000yqe.googlegroups.com> |
You still did not have a look at the link to a previous discussion. There is explained about the same you write here. Erik "Mathias" wrote in message news:f4cff452-d7dc-4d4b-b084-5d386e249dbc@w7g2000yqe.googlegroups.com... Hi, I Agree that using AAdd is a lot slower than sizing the array when creating it. All I'm saying is that counting the records can be an even more time consuming operation. It all depends on how it's done. In Dicks first message he talks about 622 records. I would say that using AAdd is fast enough in that situation. Now, counting the records is not critical for avoiding AAdd. You could expand the array in chunks of 100 records at a time if you like and set the exact size when all records have been added. This way you could loose very little time for expanding the array while avoiding counting the records at the same time. /Mathias On 4 Apr, 10:07, E®!k \\/!$$E® <nos...@nospam.com> wrote: > Mathias, > > Perhaps I did not express myself clearly enough, but you did not look at > the > enclosed link. > This is much faster than Aadd() every single element. > > <snip> > or if the size not known: > nSize := 0 > aArray := ArrayNew(MAX_ARRAY_SIZE) > while <some condition> > nSize++ > aArray[nSize] := somevalue > enddo > ASize(aArray, nSize) > </snip> > > With regards to Johan Nel. > > Erik > > "Mathias" wrote in message > > news:bab4e17f-4cdb-4960-b3ec-93a65d4520a7@o20g2000yqk.googlegroups.com... > > > If you do not know the numbers of rows, count them first. > > Hi Eric, > > the problem is that counting them first can cost you more time than > using dynamic arrays in the first place. > > /Mathias
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Replacing LV with bBrowser: much slower because of arrayserver D.J.W. van Kooten <public@ic2remove.this.com> - 2011-04-01 16:46 +0200
Re: Replacing LV with bBrowser: much slower because of arrayserver Mathias <mathias.hakansson@consultec.se> - 2011-04-01 08:04 -0700
Re: Replacing LV with bBrowser: much slower because of arrayserver "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-04-01 23:10 +0000
Re: Replacing LV with bBrowser: much slower because of arrayserver D.J.W. van Kooten <public@ic2remove.this.com> - 2011-04-02 07:50 +0200
Re: Replacing LV with bBrowser: much slower because of arrayserver E®!k \\/!$$E® <nospam@nospam.com> - 2011-04-02 08:58 +0200
Re: Replacing LV with bBrowser: much slower because of arrayserver Mathias <mathias.hakansson@consultec.se> - 2011-04-04 00:07 -0700
Re: Replacing LV with bBrowser: much slower because of arrayserver "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-04-04 17:24 +1000
Re: Replacing LV with bBrowser: much slower because of arrayserver E®!k \\/!$$E® <nospam@nospam.com> - 2011-04-04 10:07 +0200
Re: Replacing LV with bBrowser: much slower because of arrayserver Mathias <mathias.hakansson@consultec.se> - 2011-04-04 01:41 -0700
Re: Replacing LV with bBrowser: much slower because of arrayserver E®!k \\/!$$E® <nospam@nospam.com> - 2011-04-06 16:52 +0200
Re: Replacing LV with bBrowser: much slower because of arrayserver Mathias <mathias.hakansson@consultec.se> - 2011-04-06 22:38 -0700
Re: Replacing LV with bBrowser: much slower because of arrayserver Robert van der Hulst <E-55525A53-4118-E@heliks.nl> - 2011-04-04 10:09 +0200
Re: Replacing LV with bBrowser: much slower because of arrayserver "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-04-04 21:43 +0000
Re: Replacing LV with bBrowser: much slower because of arrayserver D.J.W. van Kooten <public@ic2remove.this.com> - 2011-04-05 09:05 +0200
Re: Replacing LV with bBrowser: much slower because of arrayserver E®!k \\/!$$E® <nospam@nospam.com> - 2011-04-05 11:41 +0200
Re: Replacing LV with bBrowser: much slower because of arrayserver D.J.W. van Kooten <public@ic2remove.this.com> - 2011-04-05 20:07 +0200
Re: Replacing LV with bBrowser: much slower because of arrayserver "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-04-05 21:41 +0000
Re: Replacing LV with bBrowser: much slower because of arrayserver D.J.W. van Kooten <public@ic2remove.this.com> - 2011-04-06 09:07 +0200
Re: Replacing LV with bBrowser: much slower because of arrayserver Mathias <mathias.hakansson@consultec.se> - 2011-04-06 03:07 -0700
Re: Replacing LV with bBrowser: much slower because of arrayserver D.J.W. van Kooten <public@ic2remove.this.com> - 2011-04-06 14:54 +0200
Re: Replacing LV with bBrowser: much slower because of arrayserver "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-04-04 21:41 +0000
Re: Replacing LV with bBrowser: much slower because of arrayserver D.J.W. van Kooten <public@ic2remove.this.com> - 2011-04-04 11:44 +0200
Re: Replacing LV with bBrowser: much slower because of arrayserver "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-04-05 01:32 +1000
Re: Replacing LV with bBrowser: much slower because of arrayserver D.J.W. van Kooten <public@ic2remove.this.com> - 2011-04-05 08:58 +0200
Re: Replacing LV with bBrowser: much slower because of arrayserver "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-04-05 17:55 +1000
Re: Replacing LV with bBrowser: much slower because of arrayserver D.J.W. van Kooten <public@ic2remove.this.com> - 2011-04-05 20:11 +0200
Re: Replacing LV with bBrowser: much slower because of arrayserver "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-04-05 21:43 +0000
Re: Replacing LV with bBrowser: much slower because of arrayserver D.J.W. van Kooten <public@ic2remove.this.com> - 2011-04-06 09:11 +0200
Re: Replacing LV with bBrowser: much slower because of arrayserver "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-04-07 22:18 +0000
Re: Replacing LV with bBrowser: much slower because of arrayserver Mathias <mathias.hakansson@consultec.se> - 2011-04-08 00:07 -0700
Re: Replacing LV with bBrowser: much slower because of arrayserver "Willie Moore" <williem@wmconsulting.com> - 2011-04-08 08:13 -0500
Re: Replacing LV with bBrowser: much slower because of arrayserver "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-04-09 09:32 +0000
Re: Replacing LV with bBrowser: much slower because of arrayserver "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-04-02 22:07 +0000
csiph-web