[GH-ISSUE #248] Enable codegen-units = 1 optimization for the Rust part #154

Open
opened 2026-10-26 09:46:04 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @zamazan4ik on GitHub (Apr 19, 2025).
Original GitHub issue: https://github.com/deepseek-ai/3FS/issues/248

Hi!

I see that in the Cargo.toml file you've already enabled LTO optimization - that's great! I suggest you additionally enable codegen-units = 1 optimization - it will lead to better compiler optimization opportunities that consequently leads to smaller binary size and better performance.

Thanks!

Originally created by @zamazan4ik on GitHub (Apr 19, 2025). Original GitHub issue: https://github.com/deepseek-ai/3FS/issues/248 Hi! I see that in the Cargo.toml [file](https://github.com/deepseek-ai/3FS/blob/main/Cargo.toml) you've already enabled LTO optimization - that's great! I suggest you additionally enable `codegen-units = 1` [optimization](https://doc.rust-lang.org/rustc/codegen-options/index.html#codegen-units) - it will lead to better compiler optimization opportunities that consequently leads to smaller binary size and better performance. Thanks!
Author
Owner

@Navacore commented on GitHub (Apr 20, 2025):

Nose de que me acusan

El sáb, 19 de abr. de 2025 6:43 p. m., Alexander Zaitsev <
@.***> escribió:

Hi!

I see that in the Cargo.toml file
https://github.com/deepseek-ai/3FS/blob/main/Cargo.toml you've already
enabled LTO optimization - that's great! I suggest you additionally enable codegen-units
= 1 optimization
https://doc.rust-lang.org/rustc/codegen-options/index.html#codegen-units

  • it will lead to better compiler optimization opportunities that
    consequently leads to smaller binary size and better performance.

Thanks!

—
Reply to this email directly, view it on GitHub
https://github.com/deepseek-ai/3FS/issues/248, or unsubscribe
https://github.com/notifications/unsubscribe-auth/BQ43KJJGDWLQCHW25WFXQUD22LGRPAVCNFSM6AAAAAB3PAN6ECVHI2DSMVQWIX3LMV43ASLTON2WKOZTGAYDMNRZGAZTENA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>
zamazan4ik created an issue (deepseek-ai/3FS#248)
https://github.com/deepseek-ai/3FS/issues/248

Hi!

I see that in the Cargo.toml file
https://github.com/deepseek-ai/3FS/blob/main/Cargo.toml you've already
enabled LTO optimization - that's great! I suggest you additionally enable codegen-units
= 1 optimization
https://doc.rust-lang.org/rustc/codegen-options/index.html#codegen-units

  • it will lead to better compiler optimization opportunities that
    consequently leads to smaller binary size and better performance.

Thanks!

—
Reply to this email directly, view it on GitHub
https://github.com/deepseek-ai/3FS/issues/248, or unsubscribe
https://github.com/notifications/unsubscribe-auth/BQ43KJJGDWLQCHW25WFXQUD22LGRPAVCNFSM6AAAAAB3PAN6ECVHI2DSMVQWIX3LMV43ASLTON2WKOZTGAYDMNRZGAZTENA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

<!-- gh-comment-id:2817382248 --> @Navacore commented on GitHub (Apr 20, 2025): Nose de que me acusan El sáb, 19 de abr. de 2025 6:43 p. m., Alexander Zaitsev < ***@***.***> escribió: > Hi! > > I see that in the Cargo.toml file > <https://github.com/deepseek-ai/3FS/blob/main/Cargo.toml> you've already > enabled LTO optimization - that's great! I suggest you additionally enable codegen-units > = 1 optimization > <https://doc.rust-lang.org/rustc/codegen-options/index.html#codegen-units> > - it will lead to better compiler optimization opportunities that > consequently leads to smaller binary size and better performance. > > Thanks! > > — > Reply to this email directly, view it on GitHub > <https://github.com/deepseek-ai/3FS/issues/248>, or unsubscribe > <https://github.com/notifications/unsubscribe-auth/BQ43KJJGDWLQCHW25WFXQUD22LGRPAVCNFSM6AAAAAB3PAN6ECVHI2DSMVQWIX3LMV43ASLTON2WKOZTGAYDMNRZGAZTENA> > . > You are receiving this because you are subscribed to this thread.Message > ID: ***@***.***> > *zamazan4ik* created an issue (deepseek-ai/3FS#248) > <https://github.com/deepseek-ai/3FS/issues/248> > > Hi! > > I see that in the Cargo.toml file > <https://github.com/deepseek-ai/3FS/blob/main/Cargo.toml> you've already > enabled LTO optimization - that's great! I suggest you additionally enable codegen-units > = 1 optimization > <https://doc.rust-lang.org/rustc/codegen-options/index.html#codegen-units> > - it will lead to better compiler optimization opportunities that > consequently leads to smaller binary size and better performance. > > Thanks! > > — > Reply to this email directly, view it on GitHub > <https://github.com/deepseek-ai/3FS/issues/248>, or unsubscribe > <https://github.com/notifications/unsubscribe-auth/BQ43KJJGDWLQCHW25WFXQUD22LGRPAVCNFSM6AAAAAB3PAN6ECVHI2DSMVQWIX3LMV43ASLTON2WKOZTGAYDMNRZGAZTENA> > . > You are receiving this because you are subscribed to this thread.Message > ID: ***@***.***> >
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
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
deepseek-ai/3FS#154
No description provided.