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

Issue 6215078: code review 6215078: runtime: handle and test large map values (Closed)

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

Description

runtime: handle and test large map values This is from CL 5451105 but was dropped from that CL. See also CL 6137051. The only change compared to 5451105 is to check for h != nil in reflect·mapiterinit; allowing use of nil maps must have happened after that original CL. Fixes issue 3573.

Patch Set 1 #

Patch Set 2 : diff -r 4f0a49b9d0c9 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 67c0b8c8fb29 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 67c0b8c8fb29 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 5 : diff -r 4e30a2116df8 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -50 lines) Patch
M src/pkg/runtime/hashmap.c View 1 2 3 4 24 chunks +110 lines, -49 lines 0 comments Download
M test/bigmap.go View 1 2 chunks +104 lines, -1 line 0 comments Download

Messages

Total messages: 6
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 11 months ago (2012-05-24 21:54:42 UTC) #1
dfc
hi rsc, this CL may cause a regression for small key types. linux/amd64 atom n455 ...
11 years, 10 months ago (2012-05-24 22:38:15 UTC) #2
dfc
for comparison, here are the numbers on a 5g panda board benchmark old ns/op new ...
11 years, 10 months ago (2012-05-24 22:40:59 UTC) #3
r
LGTM http://codereview.appspot.com/6215078/diff/8001/src/pkg/runtime/hashmap.c File src/pkg/runtime/hashmap.c (right): http://codereview.appspot.com/6215078/diff/8001/src/pkg/runtime/hashmap.c#newcode9 src/pkg/runtime/hashmap.c:9: #define IndirectVal (1<<0) /* storing pointers to values ...
11 years, 10 months ago (2012-05-24 23:13:43 UTC) #4
rsc
On Thu, May 24, 2012 at 6:38 PM, <dave@cheney.net> wrote: > BenchmarkMapUint32Get2 396 435 +9.85% ...
11 years, 10 months ago (2012-05-25 02:38:05 UTC) #5
rsc
11 years, 10 months ago (2012-05-25 02:41:15 UTC) #6
*** Submitted as http://code.google.com/p/go/source/detail?r=98488e2e38ee ***

runtime: handle and test large map values

This is from CL 5451105 but was dropped from that CL.
See also CL 6137051.

The only change compared to 5451105 is to check for
h != nil in reflect·mapiterinit; allowing use of nil maps
must have happened after that original CL.

Fixes issue 3573.

R=golang-dev, dave, r
CC=golang-dev
http://codereview.appspot.com/6215078
Sign in to reply to this message.

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