Author: stefan2
Date: Mon Jun 4 20:01:28 2012
New Revision: 1346128
URL: http://svn.apache.org/viewvc?rev=1346128&view=rev
Log:
Minor optimization to svn: editor code.
* subversion/libsvn_ra_svn/editorp.c
(ra_svn_edit_cmds): move fequently used command to the top
for faster lookup.
Modified:
subversion/trunk/subversion/libsvn_ra_svn/editorp.c
Modified: subversion/trunk/subversion/libsvn_ra_svn/editorp.c
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_svn/editorp.c?rev=1346128&r1=1346127&r2=1346128&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_svn/editorp.c (original)
+++ subversion/trunk/subversion/libsvn_ra_svn/editorp.c Mon Jun 4 20:01:28 2012
@@ -844,25 +844,25 @@ static const struct {
const apr_array_header_t *params,
ra_svn_driver_state_t *ds);
} ra_svn_edit_cmds[] = {
- { "target-rev", ra_svn_handle_target_rev },
- { "open-root", ra_svn_handle_open_root },
- { "delete-entry", ra_svn_handle_delete_entry },
+ { "change-file-prop", ra_svn_handle_change_file_prop },
+ { "open-file", ra_svn_handle_open_file },
+ { "apply-textdelta", ra_svn_handle_apply_textdelta },
+ { "textdelta-chunk", ra_svn_handle_textdelta_chunk },
+ { "close-file", ra_svn_handle_close_file },
{ "add-dir", ra_svn_handle_add_dir },
{ "open-dir", ra_svn_handle_open_dir },
{ "change-dir-prop", ra_svn_handle_change_dir_prop },
+ { "delete-entry", ra_svn_handle_delete_entry },
{ "close-dir", ra_svn_handle_close_dir },
{ "absent-dir", ra_svn_handle_absent_dir },
{ "add-file", ra_svn_handle_add_file },
- { "open-file", ra_svn_handle_open_file },
- { "apply-textdelta", ra_svn_handle_apply_textdelta },
- { "textdelta-chunk", ra_svn_handle_textdelta_chunk },
{ "textdelta-end", ra_svn_handle_textdelta_end },
- { "change-file-prop", ra_svn_handle_change_file_prop },
- { "close-file", ra_svn_handle_close_file },
{ "absent-file", ra_svn_handle_absent_file },
- { "close-edit", ra_svn_handle_close_edit },
{ "abort-edit", ra_svn_handle_abort_edit },
{ "finish-replay", ra_svn_handle_finish_replay },
+ { "target-rev", ra_svn_handle_target_rev },
+ { "open-root", ra_svn_handle_open_root },
+ { "close-edit", ra_svn_handle_close_edit },
{ NULL }
};