From: Xavier Leroy <xavier.leroy@inria.fr>
To: Diego Olivier Fernandez Pons
<Diego-Olivier.FERNANDEZ-PONS@cicrp.jussieu.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Marshal
Date: Tue, 16 Apr 2002 15:39:53 +0200 [thread overview]
Message-ID: <20020416153953.A7444@pauillac.inria.fr> (raw)
In-Reply-To: <Pine.A32.3.95.1020416131108.38520A-100000@ibm1.cicrp.jussieu.fr>; from Diego-Olivier.FERNANDEZ-PONS@cicrp.jussieu.fr on Tue, Apr 16, 2002 at 01:16:54PM +0200
> J'ai été surpris de voir la taille qu'occupent les données Marshal.
>
> En effet, j'ai un fichier contenant 32000 fenêtres de 512
> coefficients, chaque coefficient représenté par un nombre sur 16
> caractères et ce fichier occupe environ 500 Ko.
J'en doute. 32000*512*16 = 262 Mo, plus d'éventuels séparateurs (newlines).
Même à 1 caractère par flottant, ce qui est bien le minimum,
32000*512*1 = 16 Mo.
> Les mêmes données sous forme Marshal mais avec un nombre de
> coefficients réduit à 20 (autrement dit 32 000 tableau de 20 float)
> occupent 5,7 Mo.
Chaque float est stocké sous forme binaire IEEE double-précision, soit
8 octets, ce qui fait 32000*20*8 = 5,12 Mo. Les quelques kilo-octets
en plus correspondent aux en-têtes et tailles des tableaux.
- Xavier Leroy
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
prev parent reply other threads:[~2002-04-16 13:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-16 11:16 Diego Olivier Fernandez Pons
2002-04-16 13:39 ` Xavier Leroy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020416153953.A7444@pauillac.inria.fr \
--to=xavier.leroy@inria.fr \
--cc=Diego-Olivier.FERNANDEZ-PONS@cicrp.jussieu.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox