/[Apache-SVN]
ViewVC logotype

Revision 1658194


Jump to revision: Previous Next
Author: stefan2
Date: Sun Feb 8 15:41:40 2015 UTC (9 years, 10 months ago)
Changed paths: 1
Log Message:
Improve efficiency of the token tracking in ra_svn's editor implementation.

Instead of a plain const char *, store an svn_string_t which gives us the
length info for free.  The ra_svn token parser internally uses svn_string_t
already.  So, there is no point in willfully discarding that information. 

* subversion/libsvn_ra_svn/editorp.c
  (ra_svn_token_entry_t): Store the token as a proper string object.
  (store_token,
   lookup_token): Except tokens to be svn_string_t now, use the length
                  info implied for faster hash access.
  (ra_svn_handle_open_root,
   ra_svn_handle_delete_entry,
   ra_svn_handle_add_dir,
   ra_svn_handle_open_dir,
   ra_svn_handle_change_dir_prop,
   ra_svn_handle_close_dir,
   ra_svn_handle_absent_dir,
   ra_svn_handle_add_file,
   ra_svn_handle_open_file,
   ra_svn_handle_apply_textdelta,
   ra_svn_handle_textdelta_chunk,
   ra_svn_handle_textdelta_end,
   ra_svn_handle_change_file_prop,
   ra_svn_handle_close_file,
   ra_svn_handle_absent): Update callers to request all tokens as
                          svn_string_t.


Changed paths

Path Details
Directorysubversion/trunk/subversion/libsvn_ra_svn/editorp.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26