This is a small optimisation (4% reduction in user time) but is the largest
artifact within the parsing portion of svndump.c
Signed-off-by: David Barr <redacted>
Signed-off-by: Jonathan Nieder <redacted>
Signed-off-by: David Barr <redacted>
---
vcs-svn/svndump.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/vcs-svn/svndump.c b/vcs-svn/svndump.c
index fd67db8..7bc2d3d 100644
--- a/vcs-svn/svndump.c
+++ b/vcs-svn/svndump.c
@@ -296,10 +296,12 @@ void svndump_read(const char *url)
reset_dump_ctx(url);
while ((t = buffer_read_line(&input))) {
- val = strstr(t, ": ");
+ val = strchr(t, ':');
if (!val)
continue;
*val++ = '\0';
+ if (*val != ' ')
+ continue;
*val++ = '\0';
/* strlen(key) */--
1.7.3.2.846.gf4b062