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

Memory is not given to the system #125

Open
khromenokroman opened this issue Nov 12, 2024 · 0 comments
Open

Memory is not given to the system #125

khromenokroman opened this issue Nov 12, 2024 · 0 comments

Comments

@khromenokroman
Copy link

@p-ranav Hello, tell me what I'm doing wrong, the problem is as follows

{
        tabulate::Table table;
        std::vector<std::variant<std::string, const char *, std::string_view, tabulate::Table>> vec(
            60, std::string("asdfsrgwerqfewf32csedwefseds"));
        for (auto i = 0; i < 40000; i++) {
            table.add_row(vec);
        }
    }
    // memory not rest :(
    std::cout << "wait\n";
    sleep(20);

memory is not released, as soon as the process is completed, memory is released, but I need to be able to output tables several times within the same process, but under current conditions I can not do this, since memory is allocated new each time and memory runs out, I need help, thank you

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

No branches or pull requests

1 participant