D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 23467 - tools/dspec_tester.d calls readText multiple times per file
Summary: tools/dspec_tester.d calls readText multiple times per file
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: x86 Windows
: P4 enhancement
Assignee: No Owner
URL:
Keywords: pull, TestSuite
Depends on:
Blocks:
 
Reported: 2022-11-06 21:10 UTC by Nick Treleaven
Modified: 2023-01-21 13:33 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Nick Treleaven 2022-11-06 21:10:56 UTC
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 Nick Treleaven 2022-12-17 11:18:17 UTC
https://github.com/dlang/dlang.org/pull/3443
Comment 2 Nick Treleaven 2023-01-21 13:33:18 UTC
Fixed by above pull.