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 <uterbi$2g6te$2@i2pn2.org>
Deutsch   English   Français   Italiano  
<uterbi$2g6te$2@i2pn2.org>

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

Path: ...!news.misty.com!weretis.net!feeder6.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: fir <fir@grunge.pl>
Newsgroups: comp.lang.c
Subject: Re: filling area by color atack safety
Date: Wed, 20 Mar 2024 15:20:37 +0100
Organization: i2pn2 (i2pn.org)
Message-ID: <uterbi$2g6te$2@i2pn2.org>
References: <ut3669$21eur$1@i2pn2.org>	<ut4020$2s8ov$1@dont-email.me>	<20240317144625.00002011@yahoo.com>	<utd9m5$2eb2n$1@i2pn2.org> <20240320104155.00005b24@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Mar 2024 14:20:35 -0000 (UTC)
Injection-Info: i2pn2.org;
	logging-data="2628526"; mail-complaints-to="usenet@i2pn2.org";
	posting-account="+ydHcGjgSeBt3Wz3WTfKefUptpAWaXduqfw5xdfsuS0";
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24
In-Reply-To: <20240320104155.00005b24@yahoo.com>
X-Spam-Checker-Version: SpamAssassin 4.0.0
Bytes: 1968
Lines: 23

Michael S wrote:
> On Wed, 20 Mar 2024 01:13:10 +0100
> fir <fir@grunge.pl> wrote:
>>
>> i asked the topic here as i felt i got no time to rethink if it will
>> blow my progranm or not but that 30 minurtes task was for 30 minutes
>> not for a multi hour discusion
>>
>
> So you got the answer rather quickly and the answer is:
> "Yes, in the worst case it can consume a lot of stack. Don't use this
> simple and elegant algorithm unless you have full control both on size
> of the images and on size of the stack and on size of the stack frame
> generates by compiler for each recursive call."
>
>
ye, may conclusion would here be rather

put stack to 100 or even 150 MB and forget... then worry if the code
(of recolorisation) work too slow

(i know howewer this is potential bug af is someone would want then 
recolorise of very big area there still would be stack overflow, but 
this is unlikely)