Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(531)

Issue 9199044: code review 9199044: runtime: inline size to class conversion in malloc() (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 11 months ago by dvyukov
Modified:
11 years, 11 months ago
Reviewers:
CC:
golang-dev, bradfitz, r
Visibility:
Public.

Description

runtime: inline size to class conversion in malloc() Also change table type from int32[] to int8[] to save space in L1$. benchmark old ns/op new ns/op delta BenchmarkMalloc 42 40 -4.68%

Patch Set 1 #

Patch Set 2 : diff -r d29da2ced72b https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 3 : diff -r d29da2ced72b https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 4 : diff -r d29da2ced72b https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 5 : diff -r ebe8bca920ad https://dvyukov%40google.com@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -14 lines) Patch
M src/pkg/runtime/malloc.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/pkg/runtime/malloc.goc View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M src/pkg/runtime/msize.c View 1 3 chunks +15 lines, -13 lines 0 comments Download

Messages

Total messages: 5
dvyukov
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
11 years, 11 months ago (2013-05-13 08:43:00 UTC) #1
bradfitz
LGTM But I'd add a comment in malloc.goc saying that it's the inlined version of ...
11 years, 11 months ago (2013-05-13 15:51:49 UTC) #2
dvyukov
On 2013/05/13 15:51:49, bradfitz wrote: > LGTM > > But I'd add a comment in ...
11 years, 11 months ago (2013-05-13 15:59:54 UTC) #3
r
LGTM
11 years, 11 months ago (2013-05-14 22:47:34 UTC) #4
dvyukov
11 years, 11 months ago (2013-05-15 07:03:00 UTC) #5
*** Submitted as https://code.google.com/p/go/source/detail?r=0fe374e88745 ***

runtime: inline size to class conversion in malloc()
Also change table type from int32[] to int8[] to save space in L1$.

benchmark          old ns/op    new ns/op    delta
BenchmarkMalloc           42           40   -4.68%

R=golang-dev, bradfitz, r
CC=golang-dev
https://codereview.appspot.com/9199044
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b