# std.fmt.digits2: optimize for ReleaseSmall · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/5b9b5e45cb710ddaad1a97813d1619755eb35a98)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 5b9b5e45cb710ddaad1a97813d1619755eb35a98

Requested commit: 5b9b5e45cb710ddaad1a97813d1619755eb35a98

Commit: 5b9b5e45cb710ddaad1a97813d1619755eb35a98

Tree: 1db06223e5497708c6aff027e2777419dff4ffc1

Author: wooster0

Committer: Andrew Kelley

## Message

````
std.fmt.digits2: optimize for ReleaseSmall

Difference:
```
$ cat x.zig
const std = @import("std");

pub const std_options = std.Options{ .keep_sigpipe = true };

pub fn main() void {
    std.io.getStdOut().writer().print("{d}\n", .{@intFromPtr(std.os.argv.ptr)}) catch {};
}
$ zig build-exe x.zig -OReleaseSmall -fsingle-threaded -fno-unwind-tables && wc -c x
2576 x
$ zig build-exe x.zig -OReleaseSmall -fsingle-threaded -fno-unwind-tables --zig-lib-dir ../zig/lib && wc -c x
2424 x
```

````

## Parents

- [de8741271f3dee0062d1c9319791687e5228e593](https://git.cafe/gitcafe/zig/commit/de8741271f3dee0062d1c9319791687e5228e593?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/5b9b5e45cb710ddaad1a97813d1619755eb35a98?format=markdown)
