Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com From: Krzysztof Duleba Subject: Re: heap_chunk_in_mb default value (Was Re: perl - segfault on "free unused scalar") Date: Sat, 30 Jul 2005 07:47:59 +0200 Lines: 13 Message-ID: References: <23AA05B1B7171647BC38C5D761900EA40223C7E9 AT DF-SEADOG-MSG DOT exchange DOT corp DOT microsoft DOT com> <20050729170958 DOT GA872 AT efn DOT org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) In-Reply-To: X-IsSubscribed: yes Igor Pechtchanski wrote: >>However code like the above does end up using twice the space; it's >>allocated once to store the result of the x operation and again when >>it's copied to $a. > > D'oh! I forgot that this was an assignment, not an initialization. I > feel properly chastised. :-) How come the assignment here is not an initialization? I suppose it is. $ perl -e '$a="a"x(200*1024*1024); sleep 9' Krzysztof Duleba -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/