Skip to content

Conversation

@Kobzol
Copy link

@Kobzol Kobzol commented Feb 17, 2025

And link to the libraries installed with make install instead. This saves disk space in the target directory. When you build jemalloc multiple times, with different Cargo profiles, RUSTFLAGS etc., the files on disk will begin accumulating for no reason (if there is a change, Cargo will just rebuild the library in a different directory).

Target directory disk space usage is a big concern to Rust users (https://blog.rust-lang.org/2025/02/13/2024-State-Of-Rust-Survey-results.html#challenges), and jemalloc is quite popular, so I think that it would be nice to improve this.

Fixes: #89

@ti-chi-bot
Copy link

ti-chi-bot bot commented Feb 17, 2025

Welcome @Kobzol! It looks like this is your first PR to tikv/jemallocator 🎉

@Kobzol
Copy link
Author

Kobzol commented Feb 18, 2025

The contributing guide link is 404. Do you have any suggestion on how to do the DCO sign-off?

@Kobzol
Copy link
Author

Kobzol commented Mar 3, 2025

Added the signoff.

@Kobzol
Copy link
Author

Kobzol commented Jun 13, 2025

@BusyJay What do you think about this? :)

@Kobzol
Copy link
Author

Kobzol commented Dec 10, 2025

@BusyJay ping :)

@BusyJay
Copy link
Member

BusyJay commented Dec 11, 2025

You need to rebase master

@Kobzol Kobzol force-pushed the build-remove-build-dir branch from 9b4583d to aea2b9a Compare December 11, 2025 06:48
And link to the libraries installed with `make install` instead.
This saves disk space in the `target` directory.

Signed-off-by: Jakub Beránek <[email protected]>
@Kobzol Kobzol force-pushed the build-remove-build-dir branch from aea2b9a to 1a91147 Compare December 11, 2025 06:49
@Kobzol
Copy link
Author

Kobzol commented Dec 11, 2025

Done. I also ignored any potential errors, so that they don't impact the result of the build.

@BusyJay BusyJay merged commit 1e6b147 into tikv:main Dec 11, 2025
10 of 11 checks passed
@BusyJay
Copy link
Member

BusyJay commented Dec 11, 2025

Thanks!

@Kobzol Kobzol deleted the build-remove-build-dir branch December 11, 2025 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unnecessary build files left in the target directory

2 participants