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.
|