Skip to content

chore(server): Some memory code updates #5379

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

Merged
merged 5 commits into from
Jul 23, 2025
Merged

Conversation

dranikpg
Copy link
Contributor

Some of the points from #5378

@dranikpg dranikpg changed the title Dranikpg memory refactor chore(server): Some memory code updates Jun 29, 2025
@dranikpg dranikpg force-pushed the dranikpg-memory-refactor branch 4 times, most recently from 5ee2ba1 to ff39413 Compare July 4, 2025 14:36
@dranikpg dranikpg force-pushed the dranikpg-memory-refactor branch from ff39413 to ab2fc7f Compare July 12, 2025 14:59
@dranikpg dranikpg marked this pull request as ready for review July 12, 2025 15:00
@dranikpg dranikpg requested review from romange and kostasrim and removed request for romange July 18, 2025 16:15
Copy link
Collaborator

@romange romange left a comment

Choose a reason for hiding this comment

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

lgtm besides a small comment

@romange
Copy link
Collaborator

romange commented Jul 18, 2025

also please resolve your branch

@dranikpg dranikpg force-pushed the dranikpg-memory-refactor branch from 79bcb74 to e2b7c1b Compare July 21, 2025 09:21
@dranikpg dranikpg requested a review from romange July 23, 2025 06:45
Copy link
Contributor

@kostasrim kostasrim left a comment

Choose a reason for hiding this comment

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

LGTM, check Roman's comment -- I think you removed a call to FetchRssMemory from ReadProcStats

}
}
return false;
return any_of(listeners_.begin(), listeners_.end(),
Copy link
Contributor

Choose a reason for hiding this comment

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

I am tempted for the last 2 year to introduce a header algorithm and a function template for each of the most popular standard algorithms:

template<typename C, typename F>
bool any_of(const C& c, F&& f) {
  return std::any_of(c.begin(), c.end(), std::forward<F>(f));
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#include in a way 🙂

@dranikpg dranikpg merged commit 0b01cc5 into main Jul 23, 2025
10 checks passed
@dranikpg dranikpg deleted the dranikpg-memory-refactor branch July 23, 2025 12: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.

3 participants