/[Apache-SVN]
ViewVC logotype

Revision 1507155


Jump to revision: Previous Next
Author: breser
Date: Thu Jul 25 23:36:22 2013 UTC (11 years, 4 months ago)
Changed paths: 1
Log Message:
Fix possible duplication of work when using svn_hash_sets() macro.

svn_hash_sets() is a macro that uses the key argument twice, so the expression
used in the key argument will be evaluated twice.  We often put calls to
apr_pstrdup() and other functions in that position, which causes unnecessary
extra work and memory usage.

* subversion/include/svn_hash.h
  (svn_hash_sets): Use a variable to avoid executing key expression twice.


Changed paths

Path Details
Directorysubversion/trunk/subversion/include/svn_hash.h modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26