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

refactor(store): change store map to iter #293

Merged
merged 8 commits into from
May 28, 2020

Conversation

KaoImin
Copy link

@KaoImin KaoImin commented May 26, 2020

What type of PR is this?
refactor

What this PR does / why we need it:
change the vector into buckets to iter

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

@KaoImin KaoImin requested a review from nolanxyg May 26, 2020 02:14
@muta-bot
Copy link

muta-bot bot commented May 26, 2020

Accept request.

@KaoImin KaoImin requested a review from yejiayu May 26, 2020 02:14
@muta-bot
Copy link

muta-bot bot commented May 26, 2020

Docker builded. "mutadev/muta:cfe5760"
Run chaos test on k8s named "muta-pr293"

@muta-bot
Copy link

muta-bot bot commented May 27, 2020

Accept request.


use crate::binding::store::{get_bucket_index, Bucket, FixedBuckets, StoreError};

pub struct NewStoreMap<S: ServiceState, K: FixedCodec + PartialEq, V: FixedCodec> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe the name "NewXXX" of struct not customary ?

@muta-bot
Copy link

muta-bot bot commented May 27, 2020

Docker builded. "mutadev/muta:43fe1f5"
Run chaos test on k8s named "muta-pr293"

@muta-bot
Copy link

muta-bot bot commented May 27, 2020

Date(muta-pr293) 1 2 3 4
2020-05-27T02:13:00.660Z 0 0 0 0
2020-05-27T02:17:00.712Z 148 148 148 148
2020-05-27T02:21:00.756Z 273 268 273 273
2020-05-27T02:25:00.896Z 406 406 406 406
2020-05-27T02:29:00.932Z 540 540 540 540
2020-05-27T02:33:00.968Z 631 630 631 631
2020-05-27T02:37:04.052Z 735 735 735 735
2020-05-27T02:41:04.524Z 869 869 868 869
2020-05-27T02:45:12.356Z 942 942 942 942
2020-05-27T02:49:12.400Z 1075 1075 1076 1077
2020-05-27T02:53:17.540Z 1201 1201 1201 1201
2020-05-27T02:57:17.584Z 1332 1332 1332 1332
2020-05-27T03:01:17.624Z 1453 1453 1453 1453
2020-05-27T03:05:17.668Z 1592 1592 1592 1592
2020-05-27T03:09:17.784Z 1718 1718 1718 1718
2020-05-27T03:13:17.832Z 1793 1793 1761 1793
2020-05-27T03:17:17.892Z 1845 1845 1823 1845
2020-05-27T03:21:23.636Z 1901 1901 1825 1901
2020-05-27T03:25:23.676Z 1961 1961 1825 1962
2020-05-27T03:29:38.376Z 2009 2009 1825 2009
2020-05-27T03:33:38.408Z 2053 2053 1825 2053
2020-05-27T03:37:40.396Z 2105 2105 1825 2105
2020-05-27T03:41:40.440Z 2156 2156 1825 2156
2020-05-27T03:45:40.484Z 2214 2214 1825 2214
tx_block sec_block tx_sec avg_round
2858.00 5.00 570.00 0.2857142857142857

KaoImin added 2 commits May 27, 2020 19:43
@muta-bot
Copy link

muta-bot bot commented May 28, 2020

Accept request.

@muta-bot
Copy link

muta-bot bot commented May 28, 2020

Docker builded. "mutadev/muta:73ca278"
Run chaos test on k8s named "muta-pr293"

@muta-bot
Copy link

muta-bot bot commented May 28, 2020

Date(muta-pr293) 1 2 3 4
2020-05-28T00:44:49.016Z 4 4 4 4
2020-05-28T00:48:49.264Z 140 140 140 140
2020-05-28T00:52:49.324Z 273 273 273 273
2020-05-28T00:56:49.364Z 396 396 396 396
2020-05-28T01:00:49.400Z 528 528 528 528
2020-05-28T01:04:54.708Z 647 647 647 647
2020-05-28T01:08:54.740Z 763 763 763 763
2020-05-28T01:12:55.800Z 887 887 887 887
2020-05-28T01:16:55.832Z 1006 1006 1006 1006
2020-05-28T01:20:55.876Z 1137 1137 1137 1137
2020-05-28T01:24:55.908Z 1269 1269 1269 1269
2020-05-28T01:28:55.940Z 1369 1369 1368 1369
2020-05-28T01:32:55.992Z 1502 1502 1502 1502
2020-05-28T01:36:56.028Z 1625 1626 1626 1626
2020-05-28T01:41:01.336Z 1760 1760 1760 1760
2020-05-28T01:45:01.388Z 1900 1900 1900 1900
2020-05-28T01:49:01.428Z 2026 2026 2026 2026
2020-05-28T01:53:01.468Z 2137 2137 2137 2137
2020-05-28T01:57:01.544Z 2242 2242 2242 2242
2020-05-28T02:01:01.604Z 2359 2351 2359 2359
2020-05-28T02:05:01.652Z 2472 2472 2472 2472
2020-05-28T02:09:04.548Z 2599 2599 2599 2599
2020-05-28T02:13:04.580Z 2732 2732 2732 2732
2020-05-28T02:17:05.644Z 2840 2840 2840 2841
tx_block sec_block tx_sec avg_round
1240.00 2.00 741.00 0

@muta-bot
Copy link

muta-bot bot commented May 28, 2020

Accept request.

@muta-bot
Copy link

muta-bot bot commented May 28, 2020

Accept request.

@muta-bot
Copy link

muta-bot bot commented May 28, 2020

Docker builded. "mutadev/muta:547f9ec"
Run chaos test on k8s named "muta-pr293"

@muta-bot
Copy link

muta-bot bot commented May 28, 2020

Accept request.

@muta-bot
Copy link

muta-bot bot commented May 28, 2020

Docker builded. "mutadev/muta:f74d8c7"
Run chaos test on k8s named "muta-pr293"

@muta-bot
Copy link

muta-bot bot commented May 28, 2020

Accept request.

@muta-bot
Copy link

muta-bot bot commented May 28, 2020

Docker builded. "mutadev/muta:9cf1a84"
Run chaos test on k8s named "muta-pr293"

@muta-bot
Copy link

muta-bot bot commented May 28, 2020

Accept request.

@muta-bot
Copy link

muta-bot bot commented May 28, 2020

Accept request.

@muta-bot
Copy link

muta-bot bot commented May 28, 2020

Docker builded. "mutadev/muta:9cf1a84"
Run chaos test on k8s named "muta-pr293"

yejiayu
yejiayu previously approved these changes May 28, 2020
@muta-bot
Copy link

muta-bot bot commented May 28, 2020

Accept request.

@muta-bot
Copy link

muta-bot bot commented May 28, 2020

Docker builded. "mutadev/muta:55d701a"
Run chaos test on k8s named "muta-pr293"

@yejiayu yejiayu merged commit 53f4b00 into nervosnetwork:master May 28, 2020
@muta-bot
Copy link

muta-bot bot commented May 28, 2020

Date(muta-pr293) 1 2 3 4
2020-05-28T09:49:48.772Z 0 0 0 0
2020-05-28T09:53:48.808Z 105 105 105 105
2020-05-28T09:57:48.840Z 237 237 237 239
2020-05-28T10:01:51.892Z 344 344 344 344
2020-05-28T10:05:53.444Z 476 476 475 476
2020-05-28T10:09:53.572Z 612 612 612 612
2020-05-28T10:13:53.604Z 724 724 724 724
2020-05-28T10:17:53.640Z 855 855 855 855
2020-05-28T10:21:53.676Z 983 983 983 983
2020-05-28T10:25:53.716Z 1103 1096 1103 1103
2020-05-28T10:29:53.788Z 1228 1228 1228 1228
2020-05-28T10:33:54.840Z 1356 1356 1356 1356
2020-05-28T10:37:54.872Z 1494 1494 1494 1494
2020-05-28T10:42:00.284Z 1611 1611 1611 1611
2020-05-28T10:46:00.332Z 1752 1752 1752 1752
2020-05-28T10:50:00.364Z 1885 1885 1885 1885
2020-05-28T10:54:00.396Z 2010 2010 2010 2010
2020-05-28T10:58:00.452Z 2055 2055 2055 2055
2020-05-28T11:02:00.500Z 2145 2145 2145 2145
2020-05-28T11:06:00.532Z 2267 2267 2267 2267
2020-05-28T11:10:07.828Z 2419 2419 2419 2419
2020-05-28T11:14:07.868Z 2560 2560 2560 2560
2020-05-28T11:18:07.924Z 2671 2671 2671 2671
2020-05-28T11:22:07.972Z 2797 2797 2797 2797
tx_block sec_block tx_sec avg_round
526.00 10.00 53.00 0

@KaoImin KaoImin deleted the refac_store branch May 29, 2020 01:15
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.

3 participants