Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[patch] optimize foreach goroutines #9

Merged
merged 3 commits into from
Feb 5, 2019

Conversation

kpango
Copy link
Owner

@kpango kpango commented Feb 4, 2019

No description provided.

@codecov
Copy link

codecov bot commented Feb 4, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@4d9c8e7). Click here to learn what that means.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master       #9   +/-   ##
=========================================
  Coverage          ?   10.32%           
=========================================
  Files             ?        1           
  Lines             ?      155           
  Branches          ?        0           
=========================================
  Hits              ?       16           
  Misses            ?      139           
  Partials          ?        0
Impacted Files Coverage Δ
gache.go 10.32% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4d9c8e7...5e2977f. Read the comment docs.

gache.go Outdated
wg.Add(1)
go func(c context.Context, idx int) {
defer wg.Done()
g.shards[i].data.Range(func(k, v interface{}) bool {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loop variable i captured by func literal (from govet)

@kpango kpango force-pushed the feature-optimize-foreach-goroutine branch 2 times, most recently from 80e9ede to 35e127f Compare February 5, 2019 07:21
@kpango kpango force-pushed the feature-optimize-foreach-goroutine branch from 35e127f to 4f9b391 Compare February 5, 2019 07:27
@kpango kpango force-pushed the feature-optimize-foreach-goroutine branch from 258cc58 to 5e2977f Compare February 5, 2019 07:29
@kpango kpango merged commit 2c02269 into master Feb 5, 2019
@kpango kpango deleted the feature-optimize-foreach-goroutine branch February 5, 2019 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants