From 1ebcd9e71f40c4667cd82a890e347af20d8dbcca Mon Sep 17 00:00:00 2001 From: q191201771 <191201771@qq.com> Date: Sat, 11 Jan 2020 11:42:05 +0800 Subject: [PATCH] [fix] demo slicebytepool --- demo/slicebytepool/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/slicebytepool/main.go b/demo/slicebytepool/main.go index b3f8e02..bb12102 100644 --- a/demo/slicebytepool/main.go +++ b/demo/slicebytepool/main.go @@ -35,7 +35,7 @@ var loopNum = 1000 var sleepMSec = time.Duration(10) * time.Millisecond func size() int { - return random(1, 256*1024) + return random(1, 128*1024) //return 128 * 1024 @@ -125,7 +125,7 @@ func main() { nazalog.Debug("> GC.") runtime.GC() nazalog.Debug("< GC.") - if strategy != 5 { + if strategy != 3 { nazalog.Debugf("%+v", bp.RetrieveStatus()) } nazalog.Debug("< loop.")