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

perf_counter: code refactor #119

Merged
merged 1 commit into from Jul 6, 2018
Merged

perf_counter: code refactor #119

merged 1 commit into from Jul 6, 2018

Conversation

shengofsun
Copy link
Contributor

  1. merge code pieces from different position of source tree into directory of perf_counter.
  2. remove the factory registry's mechanism, which is useless and subtle. Accordingly, several implements of perf_counter are removed, only the atomic one remains, which is the default implementation we used in production.

@@ -56,7 +56,7 @@ class shared_io_service : public utils::singleton<shared_io_service>
_io_service_worker_count =
(int)dsn_config_get_value_uint64("core",
"timer_service_worker_count",
1,
2,
Copy link
Contributor

Choose a reason for hiding this comment

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

这个为什么要修改默认值?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

线上的默认值是这个

@shengofsun shengofsun merged commit acf7545 into XiaoMi:master Jul 6, 2018
@qinzuoyan qinzuoyan mentioned this pull request Aug 20, 2018
28 tasks
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.

None yet

3 participants