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

Issue 10299043: sync: add Cache component

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by dvyukov
Modified:
10 years, 11 months ago
Reviewers:
Visibility:
Public.

Description

sync: add Cache component The Cache caches interchangeable objects, and helps to optimize garbage generation. Benchmark results as compared to chan-based cache: benchmark old ns/op new ns/op delta BenchmarkCache 66 37 -44.14% BenchmarkCache-2 336 18 -94.43% BenchmarkCache-4 375 12 -96.56% BenchmarkCache-8 390 8 -97.92% BenchmarkCache-16 390 6 -98.25% BenchmarkCache-32 392 4 -98.94% BenchmarkCache-64 417 4 -99.00%

Patch Set 1 #

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

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

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

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

Patch Set 6 : diff -r 2879112bff3d https://dvyukov%40google.com@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+456 lines, -0 lines) Patch
M src/pkg/runtime/proc.c View 1 2 2 chunks +16 lines, -0 lines 0 comments Download
M src/pkg/runtime/runtime.h View 1 1 chunk +1 line, -0 lines 0 comments Download
A src/pkg/sync/cache.go View 1 2 3 4 5 1 chunk +133 lines, -0 lines 0 comments Download
A src/pkg/sync/cache_example_test.go View 1 2 3 1 chunk +66 lines, -0 lines 0 comments Download
A src/pkg/sync/cache_test.go View 1 2 3 1 chunk +238 lines, -0 lines 0 comments Download
M src/pkg/sync/export_test.go View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

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