Limit memory usage, add several sync.Pool

This commit is contained in:
Alexander Neumann committed 2014-11-23 21:26:20 +01:00
1 parent 575635753e
commit f95788ed90
14 files changed
+277 -97

No files matched your search

+4
View File
@@ -135,6 +135,8 @@ func init() {
}
func main() {
// defer profile.Start(profile.MemProfileRate(100000), profile.ProfilePath(".")).Stop()
log.SetOutput(os.Stdout)
opts.Repo = os.Getenv("KHEPRI_REPOSITORY")
@@ -192,4 +194,6 @@ func main() {
if err != nil {
errx(1, "error executing command %q: %v", cmd, err)
}
khepri.PoolAlloc()
}