Sujet : Re: realloc() - frequency, conditions, or experiences about relocation?
De : davidd02 (at) *nospam* tpg.com.au (David Duffy)
Groupes : comp.lang.c sci.stat.mathDate : 19. Jun 2024, 07:48:17
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v4tuvf$1qto5$1@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : tin/2.6.2-20220130 ("Convalmore") (Linux/5.15.0-112-generic (x86_64))
In sci.stat.math Anton Shepelev <
anton.txt@g{oogle}mail.com> wrote:
[cross-posted to: ci.stat.math]
Malcolm McLean:
We have a continuously growing buffer, and we want the
best strategy for reallocations as the stream of
characters comes at us. So, given we now how many
characters have arrived, can we predict how many will
arrive,
Do you mean in the next bunch, or in total (till the end of
the buffer's lifetime)?
Isn't this a halting problem? Aren't the more important data:
how much memory the user is allowed to allocate, the properties of
the current system's memory allocation algorithm, when your stream
will have to go to disc or other slow large volume storage, how
the stream can be compressed on the fly (the latter might well give
strong predictions for future storage requirements based on what
has been read to date).
Date | Sujet | # | | Auteur |
17 Jun 24 | Re: realloc() - frequency, conditions, or experiences about relocation? | 22 | | Anton Shepelev |
18 Jun 24 |  Re: realloc() - frequency, conditions, or experiences about relocation? | 1 | | David Jones |
19 Jun 24 |  Re: realloc() - frequency, conditions, or experiences about relocation? | 8 | | David Duffy |
19 Jun 24 |   Re: realloc() - frequency, conditions, or experiences about relocation? | 6 | | Malcolm McLean |
19 Jun 24 |    Re: realloc() - frequency, conditions, or experiences about relocation? | 3 | | Ben Bacarisse |
19 Jun 24 |     Re: realloc() - frequency, conditions, or experiences about relocation? | 2 | | David Brown |
19 Jun 24 |      Re: realloc() - frequency, conditions, or experiences about relocation? | 1 | | Ben Bacarisse |
19 Jun 24 |    Re: realloc() - frequency, conditions, or experiences about relocation? | 2 | | Anton Shepelev |
8 Jul 24 |     Re: realloc() - frequency, conditions, or experiences about relocation? | 1 | | Anton Shepelev |
19 Jun 24 |   Re: realloc() - frequency, conditions, or experiences about relocation? | 1 | | Anton Shepelev |
2 Jul 24 |  Re: realloc() - frequency, conditions, or experiences about relocation? | 12 | | Rich Ulrich |
2 Jul 24 |   Re: realloc() - frequency, conditions, or experiences about relocation? | 5 | | Keith Thompson |
2 Jul 24 |    Re: realloc() - frequency, conditions, or experiences about relocation? | 4 | | Rich Ulrich |
8 Jul 24 |     Re: realloc() - frequency, conditions, or experiences about relocation? | 3 | | Anton Shepelev |
22 Jul 24 |      Re: realloc() - frequency, conditions, or experiences about relocation? | 2 | | Rich Ulrich |
23 Jul 24 |       Re: realloc() - frequency, conditions, or experiences about relocation? | 1 | | Anton Shepelev |
2 Jul 24 |   Re: realloc() - frequency, conditions, or experiences about relocation? | 6 | | Paul |
2 Jul 24 |    Re: realloc() - frequency, conditions, or experiences about relocation? | 5 | | Rich Ulrich |
2 Jul 24 |     Re: realloc() - frequency, conditions, or experiences about relocation? | 4 | | Rich Ulrich |
2 Jul 24 |      Re: realloc() - frequency, conditions, or experiences about relocation? | 3 | | Paul |
2 Jul 24 |       Re: realloc() - frequency, conditions, or experiences about relocation? | 1 | | James Kuyper |
2 Jul 24 |       Re: realloc() - frequency, conditions, or experiences about relocation? | 1 | | James Kuyper |