Bug 23467 – tools/dspec_tester.d calls readText multiple times per file

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P4
Component
dlang.org
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2022-11-06T21:10:56Z
Last change time
2023-01-21T13:33:18Z
Keywords
pull, TestSuite
Assigned to
No Owner
Creator
Nick Treleaven

Comments

Comment #0 by nick — 2022-11-06T21:10:56Z
tools/dspec_tester.d reads the entire contents of the same file for each of the 4 (was 3) kinds of example (extracted from .d/.dd files). This wastes memory and slows down the test runner. Each file should only be read once. PR incoming.
Comment #1 by nick — 2022-12-17T11:18:17Z
Comment #2 by nick — 2023-01-21T13:33:18Z
Fixed by above pull.