MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Bigger array taking less memory than smaller array

  • To: mathgroup at smc.vnet.net
  • Subject: [mg27245] Re: [mg27210] Bigger array taking less memory than smaller array
  • From: Tomas Garza <tgarza01 at prodigy.net.mx>
  • Date: Tue, 13 Feb 2001 03:35:50 -0500 (EST)
  • References: <200102120820.DAA03778@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Even more disturbing:

In[1]:=
ByteCount[Array[0 &, 200]]
Out[1]=
4024

In[2]:=
ByteCount[Array[0 &, 300]]
Out[2]=
1256

In[3]:=
ByteCount[Array[0 &, 1000]]
Out[3]=
4056

I hope someone can offer an explanation...

Tomas Garza
Mexico City
----- Original Message -----
From: <Sebastien.deMentendeHorne at electrabel.com>
To: mathgroup at smc.vnet.net
Subject: [mg27245] [mg27210] Bigger array taking less memory than smaller array


> Hi,
>
> This example disturbs me...
>
> In[233]:=
> ByteCount[Array[0 &, {20, 10}]]
>
> Out[233]=
> 4424
>
> In[234]:=
> ByteCount[Array[0 &, {30, 10}]]
>
> Out[234]=
> 1260
>
> Some considerations about this ?
>
> Sébastien de Menten de Horne      |    ELECTRABEL
> Tel:  ++32 10 48 51 76            |    R&D Energy Markets,
> Fax:  ++32 10 48 51 09            |    Traverse d'Esope, 6
> Gsm:  ++32 478 789 444            |    B-1348 Louvain-la-Neuve, BELGIUM
>



  • Prev by Date: Re: Removal of functions including subscripts in its name
  • Next by Date: Re: Removal of functions including subscripts in its name
  • Previous by thread: Bigger array taking less memory than smaller array
  • Next by thread: Re: Bigger array taking less memory than smaller array