/[Apache-SVN]
ViewVC logotype

Revision 1470936


Jump to revision: Previous Next
Author: philip
Date: Tue Apr 23 13:04:42 2013 UTC (10 years, 11 months ago)
Changed paths: 4
Log Message:
Significantly reduce the number of open files during a typical update
over ra_serf by using lazy-opening streams to delay opening until the
HTTP response is received.  This changes the new-in-1.8 lazy-open API.

* subversion/include/svn_io.h
  (svn_stream_lazyopen_create): Add open_on_close boolean parameter.

* subversion/libsvn_subr/stream.c
  (struct lazyopen_baton_t): Add open_on_close boolean member.
  (close_handler_lazyopen): Open if required.
  (svn_stream_lazyopen_create): Add open_on_close boolean parameter.

* subversion/libsvn_wc/update_editor.c
  (lazy_open_source, lazy_open_target, struct lazy_target_baton): New.
  (apply_textdelta): Use lazy-open streams for source and target.

* subversion/libsvn_wc/adm_ops.c
  (svn_wc__get_pristine_contents_by_checksum): Adjust call.


Changed paths

Path Details
Directorysubversion/trunk/subversion/include/svn_io.h modified , text changed
Directorysubversion/trunk/subversion/libsvn_subr/stream.c modified , text changed
Directorysubversion/trunk/subversion/libsvn_wc/adm_ops.c modified , text changed
Directorysubversion/trunk/subversion/libsvn_wc/update_editor.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26