From 2a609c033a62ffdb46462548b1bb1da47c0d6883 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Wed, 30 Jan 2008 12:05:35 +0000 Subject: [PATCH] - add optimization comment --- tools/repo_write.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/repo_write.c b/tools/repo_write.c index ea6d543..e0db955 100644 --- a/tools/repo_write.c +++ b/tools/repo_write.c @@ -644,6 +644,7 @@ repo_write_cb_sizes(void *vcbdata, Solvable *s, Repodata *data, Repokey *key, Ke } if (cbdata->mykeys[rm].storage == KEY_STORAGE_VERTICAL_OFFSET && kv->eof) { + /* we can re-use old data in the blob here! */ data_addid(cbdata->extdata + 0, cbdata->vstart); /* add offset into incore data */ data_addid(cbdata->extdata + 0, xd->len - cbdata->vstart); /* add length into incore data */ cbdata->vstart = 0; -- 2.7.4