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

gcc 8.3.0 high memory usage #901

Open
kodidu opened this issue Oct 31, 2021 · 3 comments
Open

gcc 8.3.0 high memory usage #901

kodidu opened this issue Oct 31, 2021 · 3 comments

Comments

@kodidu
Copy link

kodidu commented Oct 31, 2021

Hello!

Compiling the simple subscriber example integrated into my application consumes additional 4GB+ RAM when compiling with gcc version 8.3.0.
I could also find #522 about that. But simply reducing the parallel build is no solution.
Last time I tested this lib v9.0.0 was used.

Was this issue addressed between v9.0.0 and v12.0.0?

@redboltz
Copy link
Owner

No. But some of updates could change memory usage.
I think that 4GB is too small. mqtt_cpp doesn't focus on reducing compile time memory usage, so far.
I recommend that add memory on compiler environment. If it is embedded environment, use cross compiler.

clang++ might use smaller memory, I'm not sure.

@Bart97
Copy link

Bart97 commented Apr 9, 2022

I'm very sad to say that at this point it seems that the library is not usable in any complex projects.... It's a shame because I really liked this approach and the use of boost.asio, but the insane compilation times and memory usage make it a pain to work with.

@kodidu
Copy link
Author

kodidu commented Jun 18, 2022

Yes it is sad, I also never experienced such bad compile-time memory / cpu usage with any library. Template/header-only libraries are hard to master.

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

3 participants