Major refactoring to lower memory consumption.

Package has been split into multiple structure loaded on demand: files, extra, depends.

They're saved and loaded completely separately.
This commit is contained in:
Andrey Smirnov
2014-03-04 16:49:26 +04:00
parent 32e517b4f2
commit 3fe8a09928
15 changed files with 1301 additions and 1007 deletions
+4
View File
@@ -162,6 +162,10 @@ func (p *PublishedRepo) Publish(packagePool aptly.PackagePool, publishedStorage
return err
}
pkg.files = nil
pkg.deps = nil
pkg.extra = nil
}
return nil