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

TransportをVectorで持つようにする #37

Merged
merged 1 commit into from
Mar 23, 2023

Conversation

ynishinaka
Copy link
Contributor

概要

taglake (release-20230306-0)でプロファイルを取ったところ、logger周りのメモリ使用量が増加しがちだった(ちなみにこれはherp-loggerがresource-pool 0.4対応する前の結果ですが、resource-pool 0.4を使うようにしても同じような結果になります):
image

そこで、createTransportstransportsをリストからVectorにしたところ、logger周りのメモリ使用量が改善された雰囲気が出てきた:
image

taglake release-20230306-0はcreateTransportsの要素数が1なので、なぜこれで改善されるのかはよく分かっていません

@ynishinaka ynishinaka changed the title Use vectors for collections of transports TransportをVectorで持つようにする Mar 23, 2023
@ynishinaka ynishinaka requested review from fumieval and ruicc March 23, 2023 01:52
Copy link
Contributor

@fumieval fumieval left a comment

Choose a reason for hiding this comment

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

不思議ですね

@ynishinaka ynishinaka merged commit 42b80e5 into master Mar 23, 2023
@ynishinaka ynishinaka deleted the vector-of-transports branch March 23, 2023 06:13
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