apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49085] [PATCH] Speed up file I/O
Date Tue, 20 Apr 2010 23:20:57 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49085

--- Comment #2 from Stefan Fuhrmann <stefanfuhrmann@alice-dsl.de> 2010-04-20 19:20:55
EDT ---
Updated patch comment:

[[[
Minimize relative overhead for buffered I/O of 
small data blocks. Also, eliminate mutex overhead
from single-threaded Win32 code.

* file_io/unix/readwrite.c
  (file_read_buffered): don't buffer large chunks at all
  (apr_file_write): add "shortcut" for small buffers;
  don't buffer large chunks at all
  (apr_file_putc, apr_file_getc): add shortcut 
  for the common case

* file_io/win32/readwrite.c
  (apr_file_read): use mutex only if the file is
  possibly accessed from multiple threads;
  don't buffer large chunks at all
  (apr_file_write_locked): new function, factored
  out from apr_file_flush
  (apr_file_write): defer OVERLAPPED handling;
  use mutex only if the file is possibly accessed 
  from multiple threads; add "shortcut" for small 
  buffers; don't buffer large chunks at all
  (apr_file_putc, apr_file_getc): add shortcut 
  for the common case
  (apr_file_flush): moved most code to 
  apr_file_write_locked

patch by stefanfuhrmann < at > alice-dsl.de
]]]

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message