🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.lang.c
Article #15078

Re: fwrite et setvbuf

#15078
From: Charlie Gordon
Date: Mon, 10 Oct 2005 01:47
42 lines
2229 bytes
"Harpo" <trashcan@hotmail.com> wrote in message
news:43481e89$0$1706$8fcfb975@news.wanadoo.fr...
> Harpo wrote:
>
> > Pierre Habouzit wrote:
> >
> >> Pierre Habouzit wrote:
> >>
> >>>> Quelle est la valeur de BUFSIZ ?
> >>> d�pend du systeme, c'est une macro qui repr�sente la taille optimale
> >>> pour la performance des IO (cf la doc).
> >>
> >> visiblement 4096 sur ma machine.
> >
> > On m'a encore fourgu� une machine un peu naze, apr�s avoir it�r� un
> > peu sur des grep sur /usr/include, il semble que sur la mienne (Debian
> > GNU/Linux 'testing' i386) cela fasse 8192.
>
> Comme j'utilise mal grep et que cela m'aurait emp�ch� de dormir de
> n'avoir pas v�rifi�, j'ai fait le petit programme :
> #include <stdio.h>
> int main( void ) {
>         fprintf(stdout, "%d\n", BUFSIZ );

t'es f�ch� avec printf ?

>         return( 0 );  // Avec les parenth�ses !

berk!

> }
>
> il me donne 8192.
>
> -- 
> Ce dont tout le monde se fout...

Mad, dans ton cas, tu peux carr�ment booster la buff�risation un max, une fois
r�gl� le probl�me, essaie 128K ou 1MB pour voir.

-- 
Chqrlie.
Technical Details
Message-ID: <4349c7bf$0$6852$626a14ce@news.free.fr>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!infeed-2.proxad.net!news18-e.free.fr!not-for-mail
References: <4347c389$0$14664$626a14ce@news.free.fr> <4347e4e7$0$27405$8fcfb975@news.wanadoo.fr> <4348056c$0$9731$626a14ce@news.free.fr> <43480646$0$14042$626a14ce@news.free.fr> <43481954$0$5372$8fcfb975@news.wanadoo.fr> <43481e89$0$1706$8fcfb975@news.wanadoo.fr>

Show Full Headers
Complete Article Headers
X-Google-Thread: f9822,e69a4cd47d957512
X-Google-Attributes: gidf9822,public
X-Google-Language: FRENCH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!infeed-2.proxad.net!news18-e.free.fr!not-for-mail
From: "Charlie Gordon" <news@chqrlie.org>
Newsgroups: fr.comp.lang.c
References: <4347c389$0$14664$626a14ce@news.free.fr> <4347e4e7$0$27405$8fcfb975@news.wanadoo.fr> <4348056c$0$9731$626a14ce@news.free.fr> <43480646$0$14042$626a14ce@news.free.fr> <43481954$0$5372$8fcfb975@news.wanadoo.fr> <43481e89$0$1706$8fcfb975@news.wanadoo.fr>
Subject: Re: fwrite et setvbuf
Date: Mon, 10 Oct 2005 03:47:21 +0200
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Lines: 44
Message-ID: <4349c7bf$0$6852$626a14ce@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 10 Oct 2005 03:45:35 MEST
NNTP-Posting-Host: 81.57.219.236
X-Trace: 1128908735 news18-e.free.fr 6852 81.57.219.236:51373
X-Complaints-To: abuse@proxad.net