Skip to content
This repository has been archived by the owner on Sep 19, 2022. It is now read-only.

> refactor memory store #11

Merged
merged 1 commit into from
Sep 16, 2022
Merged

> refactor memory store #11

merged 1 commit into from
Sep 16, 2022

Conversation

kebe7jun
Copy link
Member

switch to go 1.19
use generics refacting memory store
write resources only lock namespace
add concurrency tests
add namespace and name buildin index

@kebe7jun
Copy link
Member Author

kebe7jun commented Sep 16, 2022

write obj bench

goos: darwin
goarch: amd64
pkg: github.com/DaoCloud/ckube/store/memory
cpu: Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
BenchmarkWrite
BenchmarkWrite-8   	   78609	     14113 ns/op
PASS

read obj bench

goos: darwin
goarch: amd64
pkg: github.com/DaoCloud/ckube/store/memory
cpu: Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
BenchmarkRead
BenchmarkRead-8   	 1000000	      2479 ns/op
PASS

switch to go 1.19
use generics refacting memory store
write resources only lock namespace
add concurrency tests
add namespace and name buildin index
Copy link
Contributor

@hanxiaop hanxiaop left a comment

Choose a reason for hiding this comment

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

LGTM

@kebe7jun kebe7jun merged commit 263449e into main Sep 16, 2022
@kebe7jun kebe7jun deleted the refactor/store branch September 16, 2022 08:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants