[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] MHD_create_post_processor: recommended buffer size f
From: |
Evgeny Grin |
Subject: |
Re: [libmicrohttpd] MHD_create_post_processor: recommended buffer size for large posts |
Date: |
Fri, 31 Mar 2017 09:42:08 +0300 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
Hi Silvio,
Sidenote: SVN is not updated any more, latest version is on git:
https://gnunet.org/git/libmicrohttpd.git/tree/doc/examples/largepost.c
"512" is not recommended size, it's just suitable size for example.
Optimal value depends on OS, architecture, amount of available RAM.
You should experiment to find out what is optimal for you.
--
Best Wishes,
Evgeny Grin
On 31.03.2017 6:17, silvioprog wrote:
> Hello dudes,
>
> Looking at MHD examples, it seems the recommended buffer size to specify
> on MHD_create_post_processor() for large uploads is 512:
>
> https://gnunet.org/svn/libmicrohttpd/doc/examples/largepost.c
> <https://gnunet.org/svn/libmicrohttpd/doc/examples/largepost.c>
>
> However, what means large for you? About 100 MB, 1 GB, 10 GB or greater?!
>
> I have a structure that I need to support ~ 5 GB, so I'm planning to use
> 1024, because I want fast transfer using less memory and CPU possible.
> In that case, is 1024 an ideal size?
>
> Thank you!
>
> P.S.: we should specify the size (in MB or GB) that we consider large on
> the example `largepost.c`.
>
> --
> Silvio Clécio