diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-06-20 20:14:33 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-06-20 20:14:33 -0400 |
| commit | 64dfd1883eb2b9ab175af9b07c84bd4b53b7e904 (patch) | |
| tree | 468d8404da72474318a8abb166238b0b0b572436 /lib/std/math/complex/cosh.zig | |
| parent | 0a9672fb86b84658f8780f57e769be45e41f3034 (diff) | |
| download | zig-64dfd1883eb2b9ab175af9b07c84bd4b53b7e904.tar.gz zig-64dfd1883eb2b9ab175af9b07c84bd4b53b7e904.zip | |
zig fmt: avoid unnecessary file system access
zig fmt previously would write a temp file, and then either rename it
into place if necessary, or unlink it if nothing was changed. Now zig
fmt renders into a memory buffer, and only writes the temp file and
renames it into place if anything changed.
Based on the performance testing I did this actually did not have much
of an impact, however it's likely that on other operating systems and
other hard drives this could make a big difference.
Diffstat (limited to 'lib/std/math/complex/cosh.zig')
0 files changed, 0 insertions, 0 deletions
