Conversation
|
The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3027 +/- ##
==========================================
- Coverage 58.33% 58.09% -0.25%
==========================================
Files 2079 2094 +15
Lines 171885 173991 +2106
==========================================
+ Hits 100268 101075 +807
- Misses 62671 63922 +1251
- Partials 8946 8994 +48
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
sei-db/state_db/sc/flatkv/store.go
Outdated
|
|
||
| coreCount := runtime.NumCPU() | ||
| readPoolSize := int(cfg.ReaderThreadsPerCore*float64(coreCount) + float64(cfg.ReaderConstantThreadCount)) | ||
| miscPoolSize := int(cfg.MiscPoolThreadsPerCore*float64(coreCount) + float64(cfg.MiscConstantThreadCount)) |
Check notice
Code scanning / CodeQL
Floating point arithmetic Note
sei-db/state_db/sc/flatkv/store.go
Outdated
|
|
||
| coreCount := runtime.NumCPU() | ||
| readPoolSize := int(cfg.ReaderThreadsPerCore*float64(coreCount) + float64(cfg.ReaderConstantThreadCount)) | ||
| miscPoolSize := int(cfg.MiscPoolThreadsPerCore*float64(coreCount) + float64(cfg.MiscConstantThreadCount)) |
Check notice
Code scanning / CodeQL
Floating point arithmetic Note
sei-db/state_db/sc/flatkv/store.go
Outdated
| ctx, cancel := context.WithCancel(ctx) | ||
|
|
||
| coreCount := runtime.NumCPU() | ||
| readPoolSize := int(cfg.ReaderThreadsPerCore*float64(coreCount) + float64(cfg.ReaderConstantThreadCount)) |
Check notice
Code scanning / CodeQL
Floating point arithmetic Note
sei-db/state_db/sc/flatkv/store.go
Outdated
| ctx, cancel := context.WithCancel(ctx) | ||
|
|
||
| coreCount := runtime.NumCPU() | ||
| readPoolSize := int(cfg.ReaderThreadsPerCore*float64(coreCount) + float64(cfg.ReaderConstantThreadCount)) |
Check notice
Code scanning / CodeQL
Floating point arithmetic Note
| "io" | ||
| "os" | ||
| "path/filepath" | ||
| "runtime" |
Check notice
Code scanning / CodeQL
Sensitive package import Note
| valueChan := entry.valueChan | ||
| s.lock.Unlock() | ||
| s.metrics.reportCacheMisses(1) | ||
| startTime := time.Now() |
Check warning
Code scanning / CodeQL
Calling the system time Warning
| entry.valueChan = valueChan | ||
| s.lock.Unlock() | ||
| s.metrics.reportCacheMisses(1) | ||
| startTime := time.Now() |
Check warning
Code scanning / CodeQL
Calling the system time Warning
| } | ||
|
|
||
| s.metrics.reportCacheMisses(int64(len(pending))) | ||
| startTime := time.Now() |
Check warning
Code scanning / CodeQL
Calling the system time Warning
| } | ||
|
|
||
| s.metrics.reportCacheMissLatency(time.Since(startTime)) | ||
| go s.bulkInjectValues(pending) |
Check notice
Code scanning / CodeQL
Spawning a Go routine Note
| missLatency: missLatency, | ||
| } | ||
|
|
||
| go cm.collectLoop(ctx, scrapeInterval, getSize) |
Check notice
Code scanning / CodeQL
Spawning a Go routine Note
Describe your changes and provide context
Add a caching layer to FlatKV, more than doubling performance in cryptosim benchmarks.
Testing performed to validate your change
Unit tests, ran benchmark over several days.