#157 Set debug=0 in cargo.toml to speed up builds

Merged
dessalines merged 1 commits from debug-false into move_views_to_diesel 1 month ago
nutomic commented 1 month ago
Owner

As I mentioned before, this speeds up builds because the binaries are smaller, and less data needs to be written. The only effect is that we cant attach a debugger to Lemmy, but we dont do that anyway (and if so, its easy to change the value). Crashes still print full stack traces.

A quick comparison with only one build each:

debug = 2 (default):
    clean build time: 3m 17s
    binary size: 450M
    
debug = 0:
	clean build time: 1m 42s
    binary size: 90M

You can imagine that the difference would be even bigger for incremental builds.

As I mentioned before, this speeds up builds because the binaries are smaller, and less data needs to be written. The only effect is that we cant attach a debugger to Lemmy, but we dont do that anyway (and if so, its easy to change the value). Crashes still print full stack traces. A quick comparison with only one build each: ``` debug = 2 (default): clean build time: 3m 17s binary size: 450M debug = 0: clean build time: 1m 42s binary size: 90M ``` You can imagine that the difference would be even bigger for incremental builds.
nutomic added 1 commit 1 month ago
Poster
Owner

Nice.

Nice.
dessalines merged commit 6a04aaca55 into move_views_to_diesel 1 month ago
The pull request has been merged as 6a04aaca55.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.