FAQ

On 2012/12/28 17:58:13, dvyukov wrote:
Hello mailto:golang-dev@googlegroups.com (cc:
mailto:msolomon@google.com, mailto:sougou@google.com),
I'd like you to review this change to
https://dvyukov%2540google.com%40code.google.com/p/go/
Hey, thanks for an interesting patch. Just want to give some feedback
here.

I have a ray tracer app which consumed memory during run (800x600 image
rendering, 100 rays per pixel, 10 goroutines, 1 goroutine per image row,
GOMAXPROCS=4) starting from 20 megs and ending up with 100 megs or so in
5 minutes of intensive CPU usage. I know there are no allocs in the ray
tracer itself, so it must be stack segments cache. So, I tried your
patch set. It's amazing. Memory consumption went down to 20 megs at the
beginning (same) and 30 megs at the end. And I see no performance
degradation whatsoever.

So, summary:
Before: 20 to 100 megs during run.
After: 20 to 30 megs during run.

In both cases rendering time was 5 minutes 5 seconds.

Так что спасибо огромное за патч, я как раз хотел выяснить от чего такое
поведение у проги.

https://codereview.appspot.com/6997052/

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 7 of 11 | next ›
Discussion Overview
groupgolang-dev @
categoriesgo
postedDec 28, '12 at 5:58p
activeDec 30, '12 at 7:14p
posts11
users4
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase