Bump block side for copy to 64k to minimize overhead for low latency

2008-03-19  Alexander Larsson  <alexl@redhat.com>

        * gfile.c:
        (copy_stream_with_progress):
	Bump block side for copy to 64k to minimize
	overhead for low latency links. (#523015)



svn path=/trunk/; revision=6735
This commit is contained in:
Alexander Larsson 2008-03-19 12:16:20 +00:00 committed by Alexander Larsson
parent 16484fd175
commit 53f36510be
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2008-03-19 Alexander Larsson <alexl@redhat.com>
* gfile.c:
(copy_stream_with_progress):
Bump block side for copy to 64k to minimize
overhead for low latency links. (#523015)
2008-03-16 Tor Lillqvist <tml@novell.com>
* Makefile.am (libgio_2_0_la_DEPENDENCIES): Make libgio-2.0.la

View File

@ -2124,7 +2124,7 @@ copy_stream_with_progress (GInputStream *in,
{
gssize n_read, n_written;
goffset current_size;
char buffer[8192], *p;
char buffer[1024*64], *p;
gboolean res;
goffset total_size;
GFileInfo *info;