aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/pointers.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2023-09-20 18:47:47 +0100
committermlugg <mlugg@mlugg.co.uk>2023-09-23 22:01:08 +0100
commit01906a3ad8b792627e55551686c25d02fef64e98 (patch)
treeaf2bb5724e33fd6c761f025aee60041482aa25ef /test/behavior/pointers.zig
parentfbe9fcd243c646e62dc19f87d3e03b7e3f458a84 (diff)
downloadzig-01906a3ad8b792627e55551686c25d02fef64e98.tar.gz
zig-01906a3ad8b792627e55551686c25d02fef64e98.zip
print_zir: speed up ZIR printing
Source location resolution previously made ZIR printing incredibly slow, since it was O(N^2). Since we usually resolve source locations approximately in order, it is much more efficient to resolve them using a "cursor" which navigates the file. This takes the time for `zig ast-check -t Sema.zig` down from many minutes (enough that I got bored and killed the process; well over 10) to a few seconds.
Diffstat (limited to 'test/behavior/pointers.zig')
0 files changed, 0 insertions, 0 deletions