Skip to content

Remove MemoryPool from Poco because it's useless - #51732

Merged
alesapin merged 3 commits into
masterfrom
remove_poco_memory_pool
Jul 4, 2023
Merged

alesapin merged 3 commits into
masterfrom
remove_poco_memory_pool

Conversation

@alesapin

@alesapin alesapin commented Jul 3, 2023

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Remove memory pool from Poco HTTP. This pool is used for each HTTP request and can grow infinitely in case of heavy load, example:

(lldb) p Poco::Net::HTTPBufferAllocator::_pool;
(Poco::MemoryPool) $0 = {
  _blockSize = 131072
  _maxAlloc = 0
  _allocated = 20045
  _blocks = size=20045 {

We are using modern and very smart allocator (jemalloc). It's very hard to improve something around allocations with artisanal memory pool.

@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-not-for-changelog This PR should not be mentioned in the changelog label Jul 3, 2023
@robot-ch-test-poll3

robot-ch-test-poll3 commented Jul 3, 2023 •

Copy link
Copy Markdown
Contributor

This is an automated comment for commit 23c1210 with description of existing statuses. It's updated for the latest CI running
The full report is available here
The overall status of the commit is 🟡 pending

Check nameDescriptionStatus
CI runningA meta-check that indicates the running CI. Normally, it's in success or pending state. The failed status indicates some problems with the PR🟡 pending
Mergeable CheckChecks if all other necessary checks are successful🟢 success

@davenger davenger self-assigned this Jul 3, 2023
Comment thread base/poco/Net/src/HTTPSession.cpp Resolved
@alesapin
alesapin merged commit f1aaea1 into master Jul 4, 2023
@alesapin
alesapin deleted the remove_poco_memory_pool branch July 4, 2023 10:03
@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-backports-created-cloud deprecated label, NOOP label Jul 6, 2023
yokofly added a commit to timeplus-io/proton that referenced this pull request Nov 20, 2025
* ClickHouse/ClickHouse#48797 remove deadcode from poco

* ClickHouse/ClickHouse#49054 Remove some code

* ClickHouse/ClickHouse#49075 Remove some dead code in poco

* ClickHouse/ClickHouse#51732
Remove MemoryPool from Poco because it's useless

* format poco

* ClickHouse/ClickHouse#58073 Fix Integer overflow in Poco::UTF32Encoding

* ClickHouse/ClickHouse#52893 CVE-2016-2183: disable 3DES

* ClickHouse/ClickHouse#57467 Remove select() usage

---------

Co-authored-by: Alexey Milovidov <milovidov@clickhouse.com>
Co-authored-by: alesapin <alesapin@clickhouse.com>
Co-authored-by: Raúl Marín <git@rmr.ninja>
Co-authored-by: Igor Nikonov <954088+devcrafter@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backports-created-cloud deprecated label, NOOP pr-not-for-changelog This PR should not be mentioned in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants