Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <v4p9i2$lc3v$1@raubtier-asyl.eternal-september.org>
Deutsch   English   Français   Italiano  
<v4p9i2$lc3v$1@raubtier-asyl.eternal-september.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.nobody.at!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita Montero <Bonita.Montero@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: realloc() - frequency, conditions, or experiences about
 relocation?
Date: Mon, 17 Jun 2024 14:18:17 +0200
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <v4p9i2$lc3v$1@raubtier-asyl.eternal-september.org>
References: <v4ojs8$gvji$1@dont-email.me> <v4p9cg$lbo4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 17 Jun 2024 14:18:11 +0200 (CEST)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="567fea0737ace9203b0a3bd3650a3401";
	logging-data="700543"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/mypHm6CzaUJNGENqmZXKHY6INhdo4q4E="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:W2rLe3FuUpXxzM6H8uF+mG4PNCE=
In-Reply-To: <v4p9cg$lbo4$1@dont-email.me>
Content-Language: de-DE
Bytes: 1682

Am 17.06.2024 um 14:15 schrieb David Brown:

> Consider your target audience and their hardware, the target OS, and the 
> realistic size of your data.  If the target is a PC, you can happily 
> malloc tens of MB at the start without a care, and for systems that do 
> not actually allocate system memory until you try to access the area, 
> there is no cost to this.

If you have a memcpy() from a to b at the end there's twice the memory
allocated even if the destination pages are assigned while touching a
page.