From cgenolin at u-paris10.fr  Tue Nov  6 23:42:00 2012
From: cgenolin at u-paris10.fr (Christophe Genolini)
Date: Tue, 06 Nov 2012 23:42:00 +0100
Subject: [Rd] LazyData: no / yes
In-Reply-To: <FEBB4EC2-F0C8-4C9E-B5F0-FD153E55DB25@r-project.org>
References: <509950F0.503@u-paris10.fr>
	<EEACC0F5-723B-40F7-958D-7080481DE84F@r-project.org>
	<50998B97.2040401@u-paris10.fr>
	<FEBB4EC2-F0C8-4C9E-B5F0-FD153E55DB25@r-project.org>
Message-ID: <50999238.2000505@u-paris10.fr>

My real point was to explore the LazyData mechanism. So I try with LazyData: no and with LazyData: 
yes to see the difference, to see if I understand correctly the "WRE". The difference of the memory 
allocation pointed by the task manager alarm me, but you are right (I read the FAQ 7.42): my 
question has no real meaning.
Thanks for pointing me the 7.42.

Christophe
> On Nov 6, 2012, at 5:13 PM, Christophe Genolini wrote:
>
>> I get it from windows tack manager (under Window 7). I guess it is in K something.
>> My point was not about "how big is my dataset" (anyway, it is a fake dataset, so it can be as big as I want) but more about "where on hell are lost the 52 760 - 39 668 K ?"
>> :-)
> Ask your system ;) - you're comparing wrong things: a) you didn't run garbage collection so there will be temporary objects around and b) see FAQ 7.42 why what you're looking at has no real meaning.
>
> Cheers,
> Simon
>
>
>
>> Christophe
>>
>>>   On Nov 6, 2012, at 1:03 PM, Christophe Genolini wrote:
>>>
>>>> Hi the list
>>>>
>>>> I have package foo0 with a big dataset 'myData'.
>>>> In DESCRIPTION, if I use 'LazyData: no', then I get:
>>>>
>>>> - when I open a R session : memory used=20 908
>>>> - when I attach 'library(foo0)' : memory used=24364
>>>> - then I load the set 'data(myData)' : memory used=39 668
>>>>
>>>> If I use LazyData: yes', then I get
>>>> - when I open a R session : memory used=20 908
>>>> - when I attach 'library(foo0)' : memory used=52 760.
>>>>
>>>> In this second example, after 'library(foo0)', I was expecting the memory to rize up to 39 668, not to 52 760... Where does the difference come from?
>>>>
>>> What do you mean by "memory used" - i.e. where do you get that from? After GC?
>>> This certainly doesn't look like a "big dataset" by the numbers - I would classify that as tiny :)
>>>
>>> Cheers,
>>> Simon
>>>
>>>
>>>> Thanks
>>>> Christophe
>>>>
>>>>
>>>> -- 
>>>> Christophe Genolini
>>>> Ma?tre de conf?rences en bio-statistique
>>>> Vice pr?sident Communication interne et animation du campus
>>>> Universit? Paris Ouest Nanterre La D?fense
>>>>
>>>> ______________________________________________
>>>> R-devel at r-project.org mailing list
>>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>>>
>>>>
>>
>> -- 
>> Christophe Genolini
>> Ma?tre de conf?rences en bio-statistique
>> Vice pr?sident Communication interne et animation du campus
>> Universit? Paris Ouest Nanterre La D?fense
>>
>>
>


-- 
Christophe Genolini
Ma?tre de conf?rences en bio-statistique
Vice pr?sident Communication interne et animation du campus
Universit? Paris Ouest Nanterre La D?fense



[Rd] LazyData: no / yes
Christophe Genolini