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

Merged
dessalines merged 1 commits from debug-false into move_views_to_diesel 2021-01-13 18:17:10 +00:00
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 2021-01-13 17:31:50 +00:00
Owner

Nice.

Nice.
dessalines merged commit 6a04aaca55 into move_views_to_diesel 2021-01-13 18:17:10 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: LemmyNet/lemmy#157
No description provided.