author | Eric Wong <normalperson@yhbt.net> | |
Sun, 13 May 2007 08:04:43 +0000 (01:04 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 13 May 2007 19:10:42 +0000 (12:10 -0700) | ||
commit | 0dc03d6a30213e9aa0eb88886cee24b993a24a29 | |
tree | b023b248b1da7d05b19a5a600fb1b076eaa34102 | tree | snapshot |
parent | 645833b564f585a25acd75c878ffda752909c273 | commit | diff |
git-svn: clean up caching of SVN::Ra functions
This patch was originally intended to make the Perl GC more
sensitive to the SVN::Pool objects and not accidentally clean
them up when they shouldn't be (causing segfaults). That didn't
work, but this patch makes the code a bit cleaner regardless
Put our caches for get_dir and check_path calls directly into
the SVN::Ra object so they auto-expire when it is destroyed.
dirents returned by get_dir() no longer needs the pool object
stored persistently along with the cache data, as they'll be
converted to native Perl hash references.
Since calling rev_proplist repeatedly per-revision is no longer
needed in git-svn, we do not cache calls to it.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
This patch was originally intended to make the Perl GC more
sensitive to the SVN::Pool objects and not accidentally clean
them up when they shouldn't be (causing segfaults). That didn't
work, but this patch makes the code a bit cleaner regardless
Put our caches for get_dir and check_path calls directly into
the SVN::Ra object so they auto-expire when it is destroyed.
dirents returned by get_dir() no longer needs the pool object
stored persistently along with the cache data, as they'll be
converted to native Perl hash references.
Since calling rev_proplist repeatedly per-revision is no longer
needed in git-svn, we do not cache calls to it.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl | diff | blob | history |