delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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 <krzysan AT skrzynka DOT pl> |
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: | <dcf4ai$hql$1@sea.gmane.org> |
References: | <23AA05B1B7171647BC38C5D761900EA40223C7E9 AT DF-SEADOG-MSG DOT exchange DOT corp DOT microsoft DOT com> <20050729170958 DOT GA872 AT efn DOT org> <Pine DOT GSO DOT 4 DOT 61 DOT 0507291724080 DOT 19713 AT slinky DOT cs DOT nyu DOT edu> |
Mime-Version: | 1.0 |
User-Agent: | Mozilla Thunderbird 1.0.2 (Windows/20050317) |
In-Reply-To: | <Pine.GSO.4.61.0507291724080.19713@slinky.cs.nyu.edu> |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |