Skip to content
/ server Public

Conversation

@sfu2
Copy link

@sfu2 sfu2 commented Jan 23, 2026

This PR fixes a few unnecessary copies related to containers.

  1. replace push_back with emplace_back to avoid a temporary copy of Datafile
  2. iterate unordered map with reference to avoid implicit container copy
  3. rewrite tpool::circular_queue::resize to resize the vector in place
    If m_head > m_tail, resize and update m_capacity. Else, shift elements after m_tail to the end of the vector.

@CLAassistant
Copy link

CLAassistant commented Jan 23, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants