aboutsummaryrefslogtreecommitdiff
path: root/lib/std/priority_queue.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-06-20 20:14:33 -0400
committerAndrew Kelley <andrew@ziglang.org>2020-06-20 20:14:33 -0400
commit64dfd1883eb2b9ab175af9b07c84bd4b53b7e904 (patch)
tree468d8404da72474318a8abb166238b0b0b572436 /lib/std/priority_queue.zig
parent0a9672fb86b84658f8780f57e769be45e41f3034 (diff)
downloadzig-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/priority_queue.zig')
0 files changed, 0 insertions, 0 deletions