Skip to content

Type mock builders with the isolation their mockAttributes spell - #1222

Open
dfed wants to merge 12 commits into
claude/project-thread-r9iqwa-sendable-roll-on-1214from
claude/project-thread-knsfr2-mainactor-builder
Open

dfed wants to merge 12 commits into
claude/project-thread-r9iqwa-sendable-roll-on-1214from
claude/project-thread-knsfr2-mainactor-builder

Conversation

@dfed

@dfed dfed commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

Requested by Dan · project thread

What changes

A builder in a mock's overrides is the closure that replaces how a type is built. Its type now carries the type's mockAttributes, for example (@MainActor (Shelf) -> Loader)?, or (@Sendable @MainActor (Shelf) -> Loader)? where the overrides take their Sendable form. That happens in either of two cases:

  • Every generated caller spells the same attributes. Every mock in the module that builds the type spells them, and no Sendable wrapper, public mock or seam builds it.
  • The type's constructions spell those attributes too. That means its initializer or instantiate(), and its hand-written mock where it has one, as with a @MainActor init beside a @MainActor static func mock. Each place that calls the builder already calls one of those constructions synchronously, so a builder with the same isolation can be called there too. This covers callers that are main-actor only through a superclass, such as a UIKit view controller, which spell no mockAttributes. The builder takes only the attributes that every construction spells, because the type's one configuration serves every place that builds it.

Otherwise the builder keeps today's type. SafeDI copies attributes as the user spelled them, read from their syntax. It never infers isolation from a declaration's kind, a superclass or an attribute's name. Only what a closure type can carry is copied: attributes with arguments, such as @available(…), and the compiler's declaration-only attributes stay on the declarations.

The pass that decides this runs once per module. It does nothing more where no type spells a closure attribute in mockAttributes, or where every type that does has constructions spelling them all. Otherwise it walks only what the mock roots reach, and a counted step checks that it grows no faster than the module.

Why

When an actor's mock builds a type, that type's overrides take their @Sendable form. Take a preview that passes a closure calling a main-actor initializer or mock, such as .init(loader: { shelf in .mock(shelf: shelf) }). That compiled on 2.2.0 and does not compile on 2.4.5, because the closure is @Sendable and nonisolated there. With this change the closure is isolated as the user spelled it.

Tests

  • SafeDIToolMockBuilderIsolationTests: five tests, each compiling its generated code together with the fixture's preview. They cover:
    • an actor mock that makes the configuration Sendable;
    • @available in mockAttributes;
    • a caller that is main-actor only through its superclass;
    • a SendableInstantiator with a nonisolated initializer, which stays plain;
    • a type whose initializer and hand-written mock spell different isolation, which stays plain.
  • MockBuilderIsolationStepCountTests checks that doubling the mock roots at most doubles the pass's steps.
  • A new base-corpus draw on a stream of its own builds MainLoader from an actor's main-actor mock and from a second mocked type. That second type is either a main-actor class whose mock spells the main actor, or a class that is main-actor only through its superclass. A preview the compile adds beside the generated code passes each mock a closure that touches main-actor state. 295 of the corpus's 5,000 seeds draw it. With the fix reverted, seeds 38 (superclass) and 59 (spelled callers) fail to compile. The value oracle's mock mirrors skip the draw's types, because a nonisolated root cannot build them.
  • A large production app that fails on 2.4.5 builds in Debug with its sources unchanged, preview included.

Found and not fixed

Nothing.

https://claude.ai/code/session_01HLuVQL2AyjmTVDPHyoJd4Z


Generated by Claude Code

A builder in a mock's overrides replaces how a type is built. It is now typed with
those of the type's mockAttributes that its initializer or hand-written mock spells
too, so a closure a preview passes runs in that construction's isolation. Before,
an actor mock root made the type's configuration @sendable module-wide, and a
closure that called a @mainactor hand-written mock stopped compiling, though it
compiled on 2.2.0. A public configuration, whose one builder serves both of the
type's constructions, spells only what both spell.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQL2AyjmTVDPHyoJd4Z
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQL2AyjmTVDPHyoJd4Z
…s them

The rule now compares only what the user spelled in mockAttributes: a builder
takes its type's mockAttributes when every mock root in the module that reaches
the type spells the same ones, and no Sendable wrapper, public mock or seam
reaches it. A closure passed in from a preview has no generated caller, so it
does not count. Every other builder stays as before. Only attributes a closure
type takes are carried; @available stays on the declarations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQL2AyjmTVDPHyoJd4Z
…-knsfr2-mainactor-builder

# Conflicts:
#	Sources/SafeDICore/Generators/NodeRecords/NodeRecords+MockCycle.swift
A builder now also takes its type's mockAttributes when the type's initializer
or instantiate(), and its hand-written mock where it has one, spell them too,
such as a @mainactor init beside a @mainactor static func mock. Every place that
calls the builder already calls one of those constructions synchronously, so a
builder isolated as they are is callable there. This covers callers that are
main-actor only through a superclass, such as a UIKit view controller, which
spell no mockAttributes and so kept the builder plain under the rule that every
generated caller spells the same attributes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQL2AyjmTVDPHyoJd4Z
@dfed dfed self-assigned this Dec 3, 2026
@dfed
dfed marked this pull request as draft December 3, 2026 13:59
@dfed
dfed marked this pull request as ready for review December 3, 2026 15:22
@dfed
dfed changed the base branch from main to claude/project-thread-r9iqwa-sendable-roll-on-1214 December 3, 2026 15:23
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Timing of 8603613

Wall times measured in this run. A wall time, peak memory, size or growth row over its limit is reported here and fails no check; a shape the tool cannot generate still fails "Check Generate Time on Linux". Every run rewrites this comment, and a check that did not run in it is not listed.

generate, head against base: 0 failure(s).

Every shape and row

generate time and peak memory, head against base: median of 5 alternating runs; a shape fails at 2 times the base's wall time or 1.3 times its peak memory, there or on the median peak of 5 more runs with one allocator arena, and C1500-mock-chain, E32-inline-mocks, S12-mocks, S16 at 1.1 times with one arena. APP100x800x3, APP300x3000x3, E24-public-mock, MR20x1000-many-roots, ORD400-ordinary are compared on their runs with one arena alone, at 1.3 or at the shape's own memory limit.

Shape Runs Base wall / CPU Head wall / CPU Head / base (wall) Base peak Head peak Head / base (peak) Generated code Verdict
E16-seam 5, and 5 with one arena 0.201 s / 0.184 s 0.189 s / 0.182 s 0.94 56.7 MB 57.9 MB 1.02; with one arena 53.7 MB and 55.0 MB, 1.02 identical within the limits
E24-seam 5, and 5 with one arena 1.374 s / 1.455 s 1.363 s / 1.448 s 0.99 158.3 MB 158.2 MB 1.00; with one arena 136.0 MB and 137.2 MB, 1.01 identical within the limits
E32-inline 5, and 5 with one arena 0.049 s / 0.038 s 0.048 s / 0.038 s 0.98 45.5 MB 48.9 MB 1.07; with one arena 45.4 MB and 47.2 MB, 1.04 identical within the limits
D20 5, and 5 with one arena 0.990 s / 0.574 s 0.822 s / 0.537 s 0.83 51.2 MB 53.1 MB 1.04; with one arena 50.9 MB and 52.6 MB, 1.04 identical within the limits
E24-public-mock 5, and 5 with one arena 2.485 s / 2.424 s 2.347 s / 2.416 s 0.94 207.9 MB 209.2 MB 1.01; with one arena 144.6 MB and 145.7 MB, 1.01, the figure compared identical within the limits
E24-fill 5, and 5 with one arena 2.443 s / 2.568 s 2.472 s / 2.618 s 1.01 266.2 MB 266.2 MB 1.00; with one arena 236.4 MB and 237.4 MB, 1.00 identical within the limits
E24-sendable-builder 5, and 5 with one arena 1.241 s / 1.338 s 1.258 s / 1.354 s 1.01 164.6 MB 165.9 MB 1.01; with one arena 142.3 MB and 143.8 MB, 1.01 identical within the limits
E24-lazy 5, and 5 with one arena 1.423 s / 1.473 s 1.411 s / 1.503 s 0.99 161.5 MB 163.2 MB 1.01; with one arena 138.2 MB and 139.6 MB, 1.01 identical within the limits
I800-seam 5, and 5 with one arena 0.508 s / 0.632 s 0.497 s / 0.633 s 0.98 101.1 MB 103.4 MB 1.02; with one arena 77.0 MB and 78.5 MB, 1.02 identical within the limits
H1200-seam 5, and 5 with one arena 1.018 s / 1.609 s 1.018 s / 1.611 s 1.00 118.4 MB 120.0 MB 1.01; with one arena 105.2 MB and 106.5 MB, 1.01 identical within the limits
M80x80-calling-mocks 5, and 5 with one arena 0.457 s / 0.783 s 0.450 s / 0.778 s 0.99 76.4 MB 78.2 MB 1.02; with one arena 76.2 MB and 77.9 MB, 1.02 identical within the limits
R10x10-referenced-modules 5, and 5 with one arena 5.775 s / 4.686 s 5.558 s / 4.564 s 0.96 51.7 MB 53.5 MB 1.03; with one arena 50.4 MB and 51.9 MB, 1.03 identical within the limits
S12-mocks 5, and 5 with one arena 1.720 s / 3.289 s 1.687 s / 3.260 s 0.98 208.7 MB 210.9 MB 1.01; with one arena 198.4 MB and 202.7 MB, 1.02 identical within the limits
S16 5, and 5 with one arena 1.023 s / 0.988 s 1.015 s / 0.989 s 0.99 99.8 MB 101.5 MB 1.02; with one arena 81.2 MB and 83.3 MB, 1.03 identical within the limits
E32-inline-mocks 5, and 5 with one arena 0.184 s / 0.209 s 0.345 s / 0.209 s 1.87 53.6 MB 54.8 MB 1.02; with one arena 52.9 MB and 54.0 MB, 1.02 identical within the limits
C1500-mock-chain 5, and 5 with one arena 0.466 s / 0.448 s 0.471 s / 0.446 s 1.01 109.2 MB 106.4 MB 0.97; with one arena 82.4 MB and 84.1 MB, 1.02 identical within the limits
A300-app 5, and 5 with one arena 1.138 s / 1.123 s 1.157 s / 1.147 s 1.02 247.4 MB 249.5 MB 1.01; with one arena 158.5 MB and 160.1 MB, 1.01 identical within the limits
CH1500-chain 5, and 5 with one arena 0.297 s / 0.287 s 0.300 s / 0.281 s 1.01 98.0 MB 75.9 MB 0.77; with one arena 73.8 MB and 76.0 MB, 1.03 identical within the limits
RG600-ring 5, and 5 with one arena 0.138 s / 0.128 s 0.135 s / 0.125 s 0.98 56.2 MB 57.8 MB 1.03; with one arena 55.9 MB and 57.8 MB, 1.03 identical within the limits
SH100-self-holding 5, and 5 with one arena 0.076 s / 0.066 s 0.075 s / 0.065 s 0.99 50.7 MB 52.8 MB 1.04; with one arena 47.8 MB and 49.8 MB, 1.04 identical within the limits
ORD400-ordinary 5, and 5 with one arena 0.307 s / 0.297 s 0.326 s / 0.298 s 1.06 96.4 MB 98.5 MB 1.02; with one arena 73.9 MB and 75.9 MB, 1.03, the figure compared identical within the limits
RT20-roots-over-tree 5, and 5 with one arena 0.732 s / 0.714 s 0.758 s / 0.718 s 1.04 85.8 MB 87.7 MB 1.02; with one arena 74.6 MB and 77.2 MB, 1.03 identical within the limits
RT100-roots-over-tree 5, and 5 with one arena 3.486 s / 3.437 s 3.606 s / 3.346 s 1.03 174.3 MB 180.8 MB 1.04; with one arena 167.8 MB and 170.1 MB, 1.01 identical within the limits
APP100x800x3 5, and 5 with one arena 0.370 s / 0.360 s 0.371 s / 0.361 s 1.00 111.1 MB 112.5 MB 1.01; with one arena 80.9 MB and 83.0 MB, 1.03, the figure compared identical within the limits
APP300x3000x3 5, and 5 with one arena 1.413 s / 1.381 s 1.541 s / 1.387 s 1.09 289.9 MB 291.9 MB 1.01; with one arena 181.5 MB and 183.6 MB, 1.01, the figure compared identical within the limits
MR20x1000-many-roots 5, and 5 with one arena 1.296 s / 1.255 s 1.292 s / 1.260 s 1.00 107.4 MB 109.6 MB 1.02; with one arena 107.0 MB and 108.9 MB, 1.02, the figure compared identical within the limits

.safedi size, head against base: a module fails at 2 times the base's bytes.

Shape Module Base bytes Head bytes Head / base Verdict
E16-seam Feature 48882 48882 1.00 within the limit
E16-seam App 48039 48039 1.00 within the limit
E24-seam Feature 495884 495884 1.00 within the limit
E24-seam App 494465 494465 1.00 within the limit
E32-inline App 9271 9271 1.00 within the limit
D20 Core 202 202 1.00 within the limit
D20 M19 597 597 1.00 within the limit
D20 M18 597 597 1.00 within the limit
D20 M17 597 597 1.00 within the limit
D20 M16 597 597 1.00 within the limit
D20 M15 1801 1801 1.00 within the limit
D20 M14 1801 1801 1.00 within the limit
D20 M13 1801 1801 1.00 within the limit
D20 M12 1801 1801 1.00 within the limit
D20 M11 3559 3559 1.00 within the limit
D20 M10 3559 3559 1.00 within the limit
D20 M9 3553 3553 1.00 within the limit
D20 M8 3553 3553 1.00 within the limit
D20 M7 5507 5507 1.00 within the limit
D20 M6 5507 5507 1.00 within the limit
D20 M5 5514 5514 1.00 within the limit
D20 M4 5514 5514 1.00 within the limit
D20 M3 7614 7614 1.00 within the limit
D20 M2 7614 7614 1.00 within the limit
D20 M1 7614 7614 1.00 within the limit
D20 M0 7614 7614 1.00 within the limit
D20 App 10277 10277 1.00 within the limit
E24-public-mock Feature 901713 901713 1.00 within the limit
E24-public-mock App 900398 900398 1.00 within the limit
E24-fill Feature 1189780 1189780 1.00 within the limit
E24-fill App 1188294 1188294 1.00 within the limit
E24-sendable-builder Feature 487213 487213 1.00 within the limit
E24-sendable-builder App 485806 485806 1.00 within the limit
E24-lazy Feature 500208 500208 1.00 within the limit
E24-lazy App 498795 498795 1.00 within the limit
I800-seam Feature 165565 165565 1.00 within the limit
I800-seam App 156804 156804 1.00 within the limit
H1200-seam Feature 373028 373028 1.00 within the limit
H1200-seam App 370769 370769 1.00 within the limit
M80x80-calling-mocks Base 88 88 1.00 within the limit
M80x80-calling-mocks Feat 30062 30062 1.00 within the limit
M80x80-calling-mocks App 39223 39223 1.00 within the limit
R10x10-referenced-modules L0M0 1663 1663 1.00 within the limit
R10x10-referenced-modules L0M1 1664 1664 1.00 within the limit
R10x10-referenced-modules L0M2 1664 1664 1.00 within the limit
R10x10-referenced-modules L0M3 1663 1663 1.00 within the limit
R10x10-referenced-modules L0M4 1663 1663 1.00 within the limit
R10x10-referenced-modules L0M5 1664 1664 1.00 within the limit
R10x10-referenced-modules L0M6 1664 1664 1.00 within the limit
R10x10-referenced-modules L0M7 1664 1664 1.00 within the limit
R10x10-referenced-modules L0M8 1663 1663 1.00 within the limit
R10x10-referenced-modules L0M9 1664 1664 1.00 within the limit
R10x10-referenced-modules L1M0 2014 2014 1.00 within the limit
R10x10-referenced-modules L1M1 2014 2014 1.00 within the limit
R10x10-referenced-modules L1M2 2013 2013 1.00 within the limit
R10x10-referenced-modules L1M3 2013 2013 1.00 within the limit
R10x10-referenced-modules L1M4 2014 2014 1.00 within the limit
R10x10-referenced-modules L1M5 2013 2013 1.00 within the limit
R10x10-referenced-modules L1M6 2014 2014 1.00 within the limit
R10x10-referenced-modules L1M7 2014 2014 1.00 within the limit
R10x10-referenced-modules L1M8 2013 2013 1.00 within the limit
R10x10-referenced-modules L1M9 2013 2013 1.00 within the limit
R10x10-referenced-modules L2M0 2318 2318 1.00 within the limit
R10x10-referenced-modules L2M1 2319 2319 1.00 within the limit
R10x10-referenced-modules L2M2 2319 2319 1.00 within the limit
R10x10-referenced-modules L2M3 2318 2318 1.00 within the limit
R10x10-referenced-modules L2M4 2318 2318 1.00 within the limit
R10x10-referenced-modules L2M5 2318 2318 1.00 within the limit
R10x10-referenced-modules L2M6 2319 2319 1.00 within the limit
R10x10-referenced-modules L2M7 2318 2318 1.00 within the limit
R10x10-referenced-modules L2M8 2319 2319 1.00 within the limit
R10x10-referenced-modules L2M9 2318 2318 1.00 within the limit
R10x10-referenced-modules L3M0 2622 2622 1.00 within the limit
R10x10-referenced-modules L3M1 2623 2623 1.00 within the limit
R10x10-referenced-modules L3M2 2622 2622 1.00 within the limit
R10x10-referenced-modules L3M3 2623 2623 1.00 within the limit
R10x10-referenced-modules L3M4 2622 2622 1.00 within the limit
R10x10-referenced-modules L3M5 2622 2622 1.00 within the limit
R10x10-referenced-modules L3M6 2623 2623 1.00 within the limit
R10x10-referenced-modules L3M7 2623 2623 1.00 within the limit
R10x10-referenced-modules L3M8 2622 2622 1.00 within the limit
R10x10-referenced-modules L3M9 2623 2623 1.00 within the limit
R10x10-referenced-modules L4M0 2928 2928 1.00 within the limit
R10x10-referenced-modules L4M1 2927 2927 1.00 within the limit
R10x10-referenced-modules L4M2 2928 2928 1.00 within the limit
R10x10-referenced-modules L4M3 2928 2928 1.00 within the limit
R10x10-referenced-modules L4M4 2928 2928 1.00 within the limit
R10x10-referenced-modules L4M5 2928 2928 1.00 within the limit
R10x10-referenced-modules L4M6 2928 2928 1.00 within the limit
R10x10-referenced-modules L4M7 2928 2928 1.00 within the limit
R10x10-referenced-modules L4M8 2927 2927 1.00 within the limit
R10x10-referenced-modules L4M9 2927 2927 1.00 within the limit
R10x10-referenced-modules L5M0 3234 3234 1.00 within the limit
R10x10-referenced-modules L5M1 3234 3234 1.00 within the limit
R10x10-referenced-modules L5M2 3234 3234 1.00 within the limit
R10x10-referenced-modules L5M3 3235 3235 1.00 within the limit
R10x10-referenced-modules L5M4 3234 3234 1.00 within the limit
R10x10-referenced-modules L5M5 3234 3234 1.00 within the limit
R10x10-referenced-modules L5M6 3235 3235 1.00 within the limit
R10x10-referenced-modules L5M7 3235 3235 1.00 within the limit
R10x10-referenced-modules L5M8 3234 3234 1.00 within the limit
R10x10-referenced-modules L5M9 3234 3234 1.00 within the limit
R10x10-referenced-modules L6M0 3538 3538 1.00 within the limit
R10x10-referenced-modules L6M1 3538 3538 1.00 within the limit
R10x10-referenced-modules L6M2 3537 3537 1.00 within the limit
R10x10-referenced-modules L6M3 3537 3537 1.00 within the limit
R10x10-referenced-modules L6M4 3538 3538 1.00 within the limit
R10x10-referenced-modules L6M5 3538 3538 1.00 within the limit
R10x10-referenced-modules L6M6 3538 3538 1.00 within the limit
R10x10-referenced-modules L6M7 3538 3538 1.00 within the limit
R10x10-referenced-modules L6M8 3538 3538 1.00 within the limit
R10x10-referenced-modules L6M9 3537 3537 1.00 within the limit
R10x10-referenced-modules L7M0 3844 3844 1.00 within the limit
R10x10-referenced-modules L7M1 3845 3845 1.00 within the limit
R10x10-referenced-modules L7M2 3844 3844 1.00 within the limit
R10x10-referenced-modules L7M3 3844 3844 1.00 within the limit
R10x10-referenced-modules L7M4 3845 3845 1.00 within the limit
R10x10-referenced-modules L7M5 3845 3845 1.00 within the limit
R10x10-referenced-modules L7M6 3845 3845 1.00 within the limit
R10x10-referenced-modules L7M7 3845 3845 1.00 within the limit
R10x10-referenced-modules L7M8 3845 3845 1.00 within the limit
R10x10-referenced-modules L7M9 3844 3844 1.00 within the limit
R10x10-referenced-modules L8M0 4163 4163 1.00 within the limit
R10x10-referenced-modules L8M1 4163 4163 1.00 within the limit
R10x10-referenced-modules L8M2 4163 4163 1.00 within the limit
R10x10-referenced-modules L8M3 4164 4164 1.00 within the limit
R10x10-referenced-modules L8M4 4164 4164 1.00 within the limit
R10x10-referenced-modules L8M5 4163 4163 1.00 within the limit
R10x10-referenced-modules L8M6 4163 4163 1.00 within the limit
R10x10-referenced-modules L8M7 4163 4163 1.00 within the limit
R10x10-referenced-modules L8M8 4164 4164 1.00 within the limit
R10x10-referenced-modules L8M9 4163 4163 1.00 within the limit
R10x10-referenced-modules L9M0 4586 4586 1.00 within the limit
R10x10-referenced-modules L9M1 4587 4587 1.00 within the limit
R10x10-referenced-modules L9M2 4586 4586 1.00 within the limit
R10x10-referenced-modules L9M3 4586 4586 1.00 within the limit
R10x10-referenced-modules L9M4 4586 4586 1.00 within the limit
R10x10-referenced-modules L9M5 4587 4587 1.00 within the limit
R10x10-referenced-modules L9M6 4586 4586 1.00 within the limit
R10x10-referenced-modules L9M7 4587 4587 1.00 within the limit
R10x10-referenced-modules L9M8 4587 4587 1.00 within the limit
R10x10-referenced-modules L9M9 4587 4587 1.00 within the limit
R10x10-referenced-modules App 3620 3620 1.00 within the limit
S12-mocks App 2614 2614 1.00 within the limit
S16 App 3286 3286 1.00 within the limit
E32-inline-mocks App 9310 9310 1.00 within the limit
C1500-mock-chain App 162663 162663 1.00 within the limit
A300-app App 657901 657901 1.00 within the limit
CH1500-chain App 162658 162658 1.00 within the limit
RG600-ring App 67481 67481 1.00 within the limit
SH100-self-holding App 14866 14866 1.00 within the limit
ORD400-ordinary App 144192 144192 1.00 within the limit
RT20-roots-over-tree App 78834 78834 1.00 within the limit
RT100-roots-over-tree App 84195 84195 1.00 within the limit
APP100x800x3 App 179593 179593 1.00 within the limit
APP300x3000x3 App 687952 687952 1.00 within the limit
MR20x1000-many-roots App 114404 114404 1.00 within the limit

Growth, the head tool alone: each row at its layers and at 2 more, or at the two numbers it names; median of 3 alternating runs for time, and of 3 more with one allocator arena for peak memory. A measure fails at 2 times the smaller graph's, or at the limit beside it.

Row Layers Wall: fewer layers, more, ratio Peak memory .safedi bytes Generated code Verdict
P-seam-hole-at-every-screen 6 and 8 0.253 s, 2.014 s, 7.96 (limit 13) 59.9 MB, 200.2 MB, 3.34 (limit 5.5) 291416 bytes, 3379022 bytes, 11.60 (limit 12.5) 80978 bytes, 123266 bytes, 1.52 within the limits
L-label-declared-again 9 and 11 0.047 s, 0.051 s, 1.09 47.2 MB, 48.2 MB, 1.02 10443 bytes, 12982 bytes, 1.24 17699 bytes, 22475 bytes, 1.27 within the limits
K-mock-at-every-screen 6 and 8 0.055 s, 0.071 s, 1.30 (limit 6.5) 51.0 MB, 50.0 MB, 0.98 3135 bytes, 4255 bytes, 1.36 116509 bytes, 159533 bytes, 1.37 (limit 10.5) within the limits
M-public-mock-layers 6 and 8 0.090 s, 0.153 s, 1.70 (limit 5) 50.5 MB, 54.3 MB, 1.08 6955 bytes, 9179 bytes, 1.32 128150 bytes, 191046 bytes, 1.49 (limit 9) within the limits
MH-public-mock-hole-at-every-screen 6 and 8 0.227 s, 1.760 s, 7.76 (limit 12.5) 62.2 MB, 184.4 MB, 2.96 (limit 5.5) 224758 bytes, 2506094 bytes, 11.15 (limit 12.5) 490878 bytes, 3360205 bytes, 6.85 (limit 9) within the limits
Q-seam-own-module-paths 9 and 11 0.089 s, 0.101 s, 1.14 47.8 MB, 48.8 MB, 1.02 10422 bytes, 12665 bytes, 1.22 59796 bytes, 75892 bytes, 1.27 within the limits
B-cycles-through-instantiators 3 and 5 0.068 s, 0.064 s, 0.95 (limit 27) 45.6 MB, 46.3 MB, 1.01 (limit 3.6) 1706 bytes, 2680 bytes, 1.57 4492 bytes, 7990 bytes, 1.78 within the limits
W-ring-of-screens-that-open-each-other 10 and 12 0.035 s, 0.050 s, 1.44 (limit 4) 45.9 MB, 46.1 MB, 1.01 2498 bytes, 2962 bytes, 1.19 7147 bytes, 8555 bytes, 1.20 within the limits
WL-ring-of-screens-receiving-labels 2 and 4 0.205 s, 0.578 s, 2.82 (limit 5.5) 62.4 MB, 99.1 MB, 1.59 (limit 2.4) 46751 bytes, 60851 bytes, 1.30 50201 bytes, 76701 bytes, 1.53 within the limits
BM-mocks-of-cycles-through-instantiators 2 and 4 0.079 s, 0.170 s, 2.16 (limit 48) 50.1 MB, 51.7 MB, 1.03 (limit 6.5) 1262 bytes, 2221 bytes, 1.76 72987 bytes, 237796 bytes, 3.26 (limit 275) within the limits
F9-public-mock-seam-chain 3 and 5 0.246 s, 2.560 s, 10.40 (limit 16) 54.8 MB, 204.4 MB, 3.73 (limit 6) 108330 bytes, 3474647 bytes, 32.07 (limit 36) 264483 bytes, 4101514 bytes, 15.51 (limit 19) within the limits
H-seam-holes-in-cycles 3 and 5 0.115 s, 1.272 s, 11.02 (limit 22) 47.9 MB, 88.5 MB, 1.85 (limit 2.6) 22299 bytes, 1376085 bytes, 61.71 (limit 65) 28228 bytes, 121080 bytes, 4.29 (limit 5) within the limits
TA-all-to-all-tangle 4 and 6 0.113 s, 2.236 s, 19.79 (limit 27) 49.7 MB, 164.0 MB, 3.30 (limit 4.7) 32535 bytes, 1247861 bytes, 38.35 (limit 47) 78851 bytes, 5566907 bytes, 70.60 (limit 83) within the limits
LS-layered-screens-opening-screen-above 6 and 8 0.040 s, 0.045 s, 1.13 46.2 MB, 46.5 MB, 1.01 3824 bytes, 5040 bytes, 1.32 11776 bytes, 15982 bytes, 1.36 within the limits
LST-layered-screens-opening-screen-above-over-twin-cycle 4 and 6 0.061 s, 0.565 s, 9.33 (limit 13) 48.0 MB, 79.8 MB, 1.66 1358 bytes, 1811 bytes, 1.33 3427 bytes, 4893 bytes, 1.43 within the limits
LSH-seam-layered-screens-opening-screen-above-hole-at-leaves 3 and 5 0.113 s, 2.106 s, 18.70 (limit 26) 49.8 MB, 140.8 MB, 2.83 (limit 4.5) 29722 bytes, 1005186 bytes, 33.82 (limit 38) 79021 bytes, 3078304 bytes, 38.96 (limit 47) within the limits
O-only-if-available-at-every-screen 6 and 8 0.035 s, 0.038 s, 1.07 46.1 MB, 46.4 MB, 1.01 3364 bytes, 4438 bytes, 1.32 9413 bytes, 12671 bytes, 1.35 within the limits
R-received-instantiator-at-every-screen 6 and 8 0.038 s, 0.043 s, 1.12 46.2 MB, 46.7 MB, 1.01 3230 bytes, 4316 bytes, 1.34 21143 bytes, 31547 bytes, 1.49 within the limits
N-rename-at-every-screen 8 and 10 0.038 s, 0.040 s, 1.06 46.4 MB, 46.8 MB, 1.01 4432 bytes, 5507 bytes, 1.24 13439 bytes, 16889 bytes, 1.26 within the limits
V-renames-in-alternate-layers 10 and 12 0.047 s, 0.048 s, 1.02 47.2 MB, 47.5 MB, 1.01 6952 bytes, 8388 bytes, 1.21 22258 bytes, 27706 bytes, 1.24 within the limits
VO-only-if-available-renames-in-alternate-layers 10 and 12 0.051 s, 0.048 s, 0.93 47.4 MB, 47.6 MB, 1.00 7027 bytes, 8475 bytes, 1.21 22277 bytes, 27729 bytes, 1.24 within the limits
PR-parents-router 8 and 10 0.037 s, 0.039 s, 1.05 46.1 MB, 46.5 MB, 1.01 4300 bytes, 5373 bytes, 1.25 15705 bytes, 19869 bytes, 1.27 within the limits
PRS-seam-parents-router 8 and 10 0.077 s, 0.080 s, 1.03 46.9 MB, 47.0 MB, 1.00 7954 bytes, 9849 bytes, 1.24 17103 bytes, 21357 bytes, 1.25 within the limits
T-leaves-reached-twice-at-depth 1 and 3 0.369 s, 1.198 s, 3.24 (limit 6) 84.0 MB, 161.1 MB, 1.92 (limit 3.8) 214719 bytes, 665319 bytes, 3.10 (limit 3.5) 419959 bytes, 1288909 bytes, 3.07 (limit 3.5) within the limits
CH-chain-of-instantiators 1000 and 2000 0.205 s, 0.453 s, 2.21 (limit 2.3) 65.5 MB, 85.5 MB, 1.31 (limit 2.3) 107683 bytes, 219498 bytes, 2.04 (limit 2.3) 207492 bytes, 423492 bytes, 2.04 (limit 2.3) within the limits
RG-ring-of-instantiators 1000 and 2000 0.246 s, 0.537 s, 2.19 (limit 2.3) 66.0 MB, 86.3 MB, 1.31 (limit 2.3) 112707 bytes, 229523 bytes, 2.04 (limit 2.3) 234611 bytes, 477611 bytes, 2.04 (limit 2.3) within the limits
DC-chain-of-declarations-at-depth 2 and 4 0.687 s, 1.338 s, 1.95 (limit 2.3) 105.1 MB, 165.8 MB, 1.58 (limit 2.3) 341402 bytes, 693402 bytes, 2.03 (limit 2.3) 703337 bytes, 1415337 bytes, 2.01 (limit 2.3) within the limits
LC-chain-inside-lazy-cycle-function 2 and 4 1.174 s, 2.422 s, 2.06 (limit 3.2) 145.6 MB, 245.1 MB, 1.68 (limit 2.3) 565618 bytes, 1174902 bytes, 2.08 (limit 2.3) 1182142 bytes, 2394938 bytes, 2.03 (limit 2.3) within the limits
DL-deep-lazy-cycle 300 and 600 0.072 s, 0.114 s, 1.58 (limit 2.3) 50.4 MB, 54.9 MB, 1.09 (limit 2.3) 24944 bytes, 50144 bytes, 2.01 (limit 2.3) 53193 bytes, 106593 bytes, 2.00 (limit 2.3) within the limits
TS-leaves-reached-from-two-screens 2 and 4 0.629 s, 1.362 s, 2.16 (limit 2.3) 105.2 MB, 164.0 MB, 1.56 (limit 2.8) 317851 bytes, 647451 bytes, 2.04 (limit 2.3) 565355 bytes, 1150955 bytes, 2.04 (limit 2.3) within the limits
TC-leaves-reached-three-times-down-chain 2 and 4 0.401 s, 0.843 s, 2.10 (limit 3.6) 82.9 MB, 120.4 MB, 1.45 (limit 2.1) 211144 bytes, 431644 bytes, 2.04 (limit 2.3) 455533 bytes, 915033 bytes, 2.01 (limit 2.3) within the limits
TW-components-on-two-wide-screens 2 and 4 0.896 s, 1.778 s, 1.99 (limit 2.5) 120.9 MB, 192.7 MB, 1.59 (limit 2.3) 440981 bytes, 875561 bytes, 1.99 (limit 2.3) 790823 bytes, 1558723 bytes, 1.97 (limit 2.3) within the limits
BL-back-links-to-feature-entries 1 and 3 0.045 s, 0.045 s, 1.00 46.8 MB, 46.9 MB, 1.00 7344 bytes, 7394 bytes, 1.01 25102 bytes, 25352 bytes, 1.01 within the limits
BL4-back-links-to-most-feature-entries 4 and 6 0.047 s, 0.046 s, 0.96 (limit 6) 47.1 MB, 46.8 MB, 0.99 (limit 2.4) 7425 bytes, 7475 bytes, 1.01 25477 bytes, 25727 bytes, 1.01 within the limits
BLO-back-links-with-state-only-if-available 1 and 3 0.057 s, 0.141 s, 2.46 (limit 8) 47.9 MB, 49.9 MB, 1.04 7409 bytes, 7459 bytes, 1.01 25156 bytes, 25406 bytes, 1.01 within the limits
BLS-back-links-with-feature-labels-over-shared-tree 1 and 3 0.513 s, 0.793 s, 1.55 105.8 MB, 141.3 MB, 1.34 (limit 2.3) 260378 bytes, 435233 bytes, 1.67 375861 bytes, 642061 bytes, 1.71 within the limits
MB-calling-mocks-of-many-hole-types 40 and 80 0.339 s, 0.534 s, 1.58 (limit 2.2) 65.2 MB, 78.0 MB, 1.20 36220 bytes, 69448 bytes, 1.92 2316408 bytes, 4639408 bytes, 2.00 (limit 2.2) within the limits
LP-lifelike-chain-under-the-plugin 5 and 10 0.423 s, 0.926 s, 2.19 (limit 2.35) 78.8 MB, 107.9 MB, 1.37 0 bytes, 0 bytes, 1.00 1653445 bytes, 3012762 bytes, 1.82 (limit 2.2) within the limits
LPB-lifelike-chain-with-back-edges 5 and 10 1.456 s, 2.816 s, 1.93 (limit 2.3) 163.1 MB, 252.3 MB, 1.55 (limit 2.3) 0 bytes, 0 bytes, 1.00 (limit 2.3) 15700461 bytes, 25279140 bytes, 1.61 (limit 2.3) within the limits

generate, head against 2.4.5: 0 failure(s), and 1 finding(s) reported and not failed.

Reported and not failed:

  • S12-mocks: generate needed 1.32 times the base tool's peak memory with one allocator arena (200.4 MB against 151.4 MB, median of 3); the limit is 1.1
Every shape and row

generate time and peak memory, head against base: median of 3 alternating runs; a shape fails at 2 times the base's wall time or 1.3 times its peak memory, there or on the median peak of 3 more runs with one allocator arena, and C1500-mock-chain, E32-inline-mocks, S12-mocks, S16 at 1.1 times with one arena. APP100x800x3, APP300x3000x3, E24-public-mock, MR20x1000-many-roots, ORD400-ordinary are compared on their runs with one arena alone, at 1.3 or at the shape's own memory limit.

Shape Runs Base wall / CPU Head wall / CPU Head / base (wall) Base peak Head peak Head / base (peak) Generated code Verdict
E16-seam 3, and 3 with one arena 0.195 s / 0.189 s 0.192 s / 0.184 s 0.98 53.3 MB 58.4 MB 1.10; with one arena 51.3 MB and 55.0 MB, 1.07 identical within the limits
E24-seam 3, and 3 with one arena 1.384 s / 1.433 s 1.328 s / 1.413 s 0.96 153.1 MB 158.7 MB 1.04; with one arena 131.3 MB and 137.2 MB, 1.04 identical within the limits
E32-inline 3, and 3 with one arena 0.047 s / 0.037 s 0.047 s / 0.037 s 0.99 43.3 MB 48.4 MB 1.12; with one arena 42.2 MB and 47.5 MB, 1.12 identical within the limits
D20 3, and 3 with one arena 1.471 s / 0.564 s 1.138 s / 0.550 s 0.77 47.0 MB 53.2 MB 1.13; with one arena 46.5 MB and 51.7 MB, 1.11 differs within the limits
E24-public-mock 3, and 3 with one arena 2.588 s / 2.521 s 2.338 s / 2.436 s 0.90 199.6 MB 208.9 MB 1.05; with one arena 135.5 MB and 145.2 MB, 1.07, the figure compared identical within the limits
E24-fill 3, and 3 with one arena 2.679 s / 2.825 s 2.809 s / 2.793 s 1.05 261.1 MB 267.4 MB 1.02; with one arena 229.6 MB and 237.5 MB, 1.03 identical within the limits
E24-sendable-builder 3, and 3 with one arena 1.319 s / 1.415 s 1.333 s / 1.430 s 1.01 158.9 MB 166.4 MB 1.05; with one arena 137.1 MB and 143.9 MB, 1.05 identical within the limits
E24-lazy 3, and 3 with one arena 1.590 s / 1.691 s 1.550 s / 1.646 s 0.97 147.8 MB 163.1 MB 1.10; with one arena 133.8 MB and 139.7 MB, 1.04 identical within the limits
I800-seam 3, and 3 with one arena 0.591 s / 0.742 s 0.559 s / 0.702 s 0.95 95.4 MB 103.1 MB 1.08; with one arena 74.2 MB and 78.3 MB, 1.06 identical within the limits
H1200-seam 3, and 3 with one arena 1.170 s / 1.742 s 1.193 s / 1.742 s 1.02 132.7 MB 119.5 MB 0.90; with one arena 101.3 MB and 106.6 MB, 1.05 identical within the limits
M80x80-calling-mocks 3, and 3 with one arena 0.628 s / 0.808 s 0.464 s / 0.797 s 0.74 62.8 MB 77.9 MB 1.24; with one arena 61.5 MB and 77.7 MB, 1.26 identical within the limits
R10x10-referenced-modules 3, and 3 with one arena 6.287 s / 4.702 s 6.924 s / 4.677 s 1.10 49.3 MB 52.9 MB 1.07; with one arena 48.0 MB and 52.5 MB, 1.09 identical within the limits
S12-mocks 3, and 3 with one arena 1.576 s / 3.128 s 1.704 s / 3.265 s 1.08 183.1 MB 211.1 MB 1.15; with one arena 151.4 MB and 200.4 MB, 1.32 identical memory over the limit
S16 3, and 3 with one arena 0.987 s / 0.989 s 0.988 s / 0.982 s 1.00 87.3 MB 91.3 MB 1.05; with one arena 79.4 MB and 83.0 MB, 1.05 identical within the limits
E32-inline-mocks 3, and 3 with one arena 1.387 s / 2.658 s 0.182 s / 0.207 s 0.13 216.5 MB 55.1 MB 0.25; with one arena 197.8 MB and 54.3 MB, 0.27 differs within the limits
C1500-mock-chain 3, and 3 with one arena 0.714 s / 0.535 s 0.457 s / 0.422 s 0.64 204.9 MB 84.1 MB 0.41; with one arena 189.0 MB and 83.3 MB, 0.44 differs within the limits
A300-app 3, and 3 with one arena 1.203 s / 1.187 s 1.215 s / 1.190 s 1.01 232.6 MB 250.0 MB 1.07; with one arena 154.9 MB and 160.5 MB, 1.04 identical within the limits
CH1500-chain 3, and 3 with one arena 0.314 s / 0.298 s 0.295 s / 0.285 s 0.94 90.7 MB 75.8 MB 0.84; with one arena 70.5 MB and 75.6 MB, 1.07 identical within the limits
RG600-ring 3, and 3 with one arena 0.178 s / 0.170 s 0.141 s / 0.131 s 0.79 65.6 MB 58.5 MB 0.89; with one arena 54.7 MB and 57.8 MB, 1.06 identical within the limits
SH100-self-holding 3, and 3 with one arena 0.463 s / 0.454 s 0.075 s / 0.064 s 0.16 52.5 MB 49.8 MB 0.95; with one arena 49.4 MB and 49.8 MB, 1.01 identical within the limits
ORD400-ordinary 3, and 3 with one arena 0.330 s / 0.319 s 0.325 s / 0.313 s 0.99 89.8 MB 96.6 MB 1.08; with one arena 70.5 MB and 76.0 MB, 1.08, the figure compared identical within the limits
RT20-roots-over-tree 3, and 3 with one arena 0.866 s / 0.841 s 0.777 s / 0.767 s 0.90 105.0 MB 90.5 MB 0.86; with one arena 94.1 MB and 76.2 MB, 0.81 identical within the limits
RT100-roots-over-tree 3, and 3 with one arena 3.894 s / 3.849 s 3.647 s / 3.568 s 0.94 293.7 MB 171.9 MB 0.59; with one arena 273.7 MB and 170.2 MB, 0.62 identical within the limits
APP100x800x3 3, and 3 with one arena 0.370 s / 0.359 s 0.361 s / 0.351 s 0.98 103.0 MB 113.1 MB 1.10; with one arena 77.8 MB and 82.8 MB, 1.06, the figure compared identical within the limits
APP300x3000x3 3, and 3 with one arena 1.409 s / 1.398 s 1.414 s / 1.403 s 1.00 271.7 MB 291.7 MB 1.07; with one arena 178.2 MB and 183.3 MB, 1.03, the figure compared identical within the limits
MR20x1000-many-roots 3, and 3 with one arena 1.458 s / 1.429 s 1.332 s / 1.305 s 0.91 143.2 MB 109.4 MB 0.76; with one arena 125.1 MB and 108.7 MB, 0.87, the figure compared identical within the limits

.safedi size, head against base: a module fails at 2 times the base's bytes.

Shape Module Base bytes Head bytes Head / base Verdict
E16-seam Feature 48890 48890 1.00 within the limit
E16-seam App 48055 48055 1.00 within the limit
E24-seam Feature 495892 495892 1.00 within the limit
E24-seam App 494481 494481 1.00 within the limit
E32-inline App 9279 9279 1.00 within the limit
D20 Core 210 210 1.00 within the limit
D20 M19 613 613 1.00 within the limit
D20 M18 613 613 1.00 within the limit
D20 M17 613 613 1.00 within the limit
D20 M16 613 613 1.00 within the limit
D20 M15 1841 1841 1.00 within the limit
D20 M14 1841 1841 1.00 within the limit
D20 M13 1841 1841 1.00 within the limit
D20 M12 1841 1841 1.00 within the limit
D20 M11 3631 3631 1.00 within the limit
D20 M10 3631 3631 1.00 within the limit
D20 M9 3625 3625 1.00 within the limit
D20 M8 3625 3625 1.00 within the limit
D20 M7 5611 5611 1.00 within the limit
D20 M6 5611 5611 1.00 within the limit
D20 M5 5618 5618 1.00 within the limit
D20 M4 5618 5618 1.00 within the limit
D20 M3 7750 7750 1.00 within the limit
D20 M2 7750 7750 1.00 within the limit
D20 M1 7750 7750 1.00 within the limit
D20 M0 7750 7750 1.00 within the limit
D20 App 10453 10453 1.00 within the limit
E24-public-mock Feature 901721 901721 1.00 within the limit
E24-public-mock App 900414 900414 1.00 within the limit
E24-fill Feature 1189788 1189788 1.00 within the limit
E24-fill App 1188310 1188310 1.00 within the limit
E24-sendable-builder Feature 487221 487221 1.00 within the limit
E24-sendable-builder App 485822 485822 1.00 within the limit
E24-lazy Feature 500216 500216 1.00 within the limit
E24-lazy App 498811 498811 1.00 within the limit
I800-seam Feature 165573 165573 1.00 within the limit
I800-seam App 156820 156820 1.00 within the limit
H1200-seam Feature 373036 373036 1.00 within the limit
H1200-seam App 370785 370785 1.00 within the limit
M80x80-calling-mocks Base 88 88 1.00 within the limit
M80x80-calling-mocks Feat 30070 30070 1.00 within the limit
M80x80-calling-mocks App 39239 39239 1.00 within the limit
R10x10-referenced-modules L0M0 1672 1672 1.00 within the limit
R10x10-referenced-modules L0M1 1672 1672 1.00 within the limit
R10x10-referenced-modules L0M2 1672 1672 1.00 within the limit
R10x10-referenced-modules L0M3 1672 1672 1.00 within the limit
R10x10-referenced-modules L0M4 1671 1671 1.00 within the limit
R10x10-referenced-modules L0M5 1672 1672 1.00 within the limit
R10x10-referenced-modules L0M6 1671 1671 1.00 within the limit
R10x10-referenced-modules L0M7 1671 1671 1.00 within the limit
R10x10-referenced-modules L0M8 1672 1672 1.00 within the limit
R10x10-referenced-modules L0M9 1672 1672 1.00 within the limit
R10x10-referenced-modules L1M0 2023 2023 1.00 within the limit
R10x10-referenced-modules L1M1 2023 2023 1.00 within the limit
R10x10-referenced-modules L1M2 2023 2023 1.00 within the limit
R10x10-referenced-modules L1M3 2022 2022 1.00 within the limit
R10x10-referenced-modules L1M4 2023 2023 1.00 within the limit
R10x10-referenced-modules L1M5 2023 2023 1.00 within the limit
R10x10-referenced-modules L1M6 2022 2022 1.00 within the limit
R10x10-referenced-modules L1M7 2022 2022 1.00 within the limit
R10x10-referenced-modules L1M8 2022 2022 1.00 within the limit
R10x10-referenced-modules L1M9 2023 2023 1.00 within the limit
R10x10-referenced-modules L2M0 2329 2329 1.00 within the limit
R10x10-referenced-modules L2M1 2329 2329 1.00 within the limit
R10x10-referenced-modules L2M2 2329 2329 1.00 within the limit
R10x10-referenced-modules L2M3 2329 2329 1.00 within the limit
R10x10-referenced-modules L2M4 2328 2328 1.00 within the limit
R10x10-referenced-modules L2M5 2329 2329 1.00 within the limit
R10x10-referenced-modules L2M6 2329 2329 1.00 within the limit
R10x10-referenced-modules L2M7 2328 2328 1.00 within the limit
R10x10-referenced-modules L2M8 2329 2329 1.00 within the limit
R10x10-referenced-modules L2M9 2329 2329 1.00 within the limit
R10x10-referenced-modules L3M0 2637 2637 1.00 within the limit
R10x10-referenced-modules L3M1 2636 2636 1.00 within the limit
R10x10-referenced-modules L3M2 2637 2637 1.00 within the limit
R10x10-referenced-modules L3M3 2637 2637 1.00 within the limit
R10x10-referenced-modules L3M4 2636 2636 1.00 within the limit
R10x10-referenced-modules L3M5 2636 2636 1.00 within the limit
R10x10-referenced-modules L3M6 2636 2636 1.00 within the limit
R10x10-referenced-modules L3M7 2636 2636 1.00 within the limit
R10x10-referenced-modules L3M8 2637 2637 1.00 within the limit
R10x10-referenced-modules L3M9 2637 2637 1.00 within the limit
R10x10-referenced-modules L4M0 2942 2942 1.00 within the limit
R10x10-referenced-modules L4M1 2941 2941 1.00 within the limit
R10x10-referenced-modules L4M2 2941 2941 1.00 within the limit
R10x10-referenced-modules L4M3 2941 2941 1.00 within the limit
R10x10-referenced-modules L4M4 2942 2942 1.00 within the limit
R10x10-referenced-modules L4M5 2941 2941 1.00 within the limit
R10x10-referenced-modules L4M6 2941 2941 1.00 within the limit
R10x10-referenced-modules L4M7 2941 2941 1.00 within the limit
R10x10-referenced-modules L4M8 2942 2942 1.00 within the limit
R10x10-referenced-modules L4M9 2942 2942 1.00 within the limit
R10x10-referenced-modules L5M0 3246 3246 1.00 within the limit
R10x10-referenced-modules L5M1 3246 3246 1.00 within the limit
R10x10-referenced-modules L5M2 3245 3245 1.00 within the limit
R10x10-referenced-modules L5M3 3245 3245 1.00 within the limit
R10x10-referenced-modules L5M4 3245 3245 1.00 within the limit
R10x10-referenced-modules L5M5 3245 3245 1.00 within the limit
R10x10-referenced-modules L5M6 3246 3246 1.00 within the limit
R10x10-referenced-modules L5M7 3246 3246 1.00 within the limit
R10x10-referenced-modules L5M8 3246 3246 1.00 within the limit
R10x10-referenced-modules L5M9 3245 3245 1.00 within the limit
R10x10-referenced-modules L6M0 3551 3551 1.00 within the limit
R10x10-referenced-modules L6M1 3550 3550 1.00 within the limit
R10x10-referenced-modules L6M2 3551 3551 1.00 within the limit
R10x10-referenced-modules L6M3 3551 3551 1.00 within the limit
R10x10-referenced-modules L6M4 3550 3550 1.00 within the limit
R10x10-referenced-modules L6M5 3551 3551 1.00 within the limit
R10x10-referenced-modules L6M6 3551 3551 1.00 within the limit
R10x10-referenced-modules L6M7 3550 3550 1.00 within the limit
R10x10-referenced-modules L6M8 3551 3551 1.00 within the limit
R10x10-referenced-modules L6M9 3551 3551 1.00 within the limit
R10x10-referenced-modules L7M0 3858 3858 1.00 within the limit
R10x10-referenced-modules L7M1 3858 3858 1.00 within the limit
R10x10-referenced-modules L7M2 3857 3857 1.00 within the limit
R10x10-referenced-modules L7M3 3858 3858 1.00 within the limit
R10x10-referenced-modules L7M4 3857 3857 1.00 within the limit
R10x10-referenced-modules L7M5 3858 3858 1.00 within the limit
R10x10-referenced-modules L7M6 3857 3857 1.00 within the limit
R10x10-referenced-modules L7M7 3857 3857 1.00 within the limit
R10x10-referenced-modules L7M8 3857 3857 1.00 within the limit
R10x10-referenced-modules L7M9 3858 3858 1.00 within the limit
R10x10-referenced-modules L8M0 4176 4176 1.00 within the limit
R10x10-referenced-modules L8M1 4175 4175 1.00 within the limit
R10x10-referenced-modules L8M2 4175 4175 1.00 within the limit
R10x10-referenced-modules L8M3 4176 4176 1.00 within the limit
R10x10-referenced-modules L8M4 4176 4176 1.00 within the limit
R10x10-referenced-modules L8M5 4175 4175 1.00 within the limit
R10x10-referenced-modules L8M6 4176 4176 1.00 within the limit
R10x10-referenced-modules L8M7 4175 4175 1.00 within the limit
R10x10-referenced-modules L8M8 4175 4175 1.00 within the limit
R10x10-referenced-modules L8M9 4175 4175 1.00 within the limit
R10x10-referenced-modules L9M0 4599 4599 1.00 within the limit
R10x10-referenced-modules L9M1 4600 4600 1.00 within the limit
R10x10-referenced-modules L9M2 4599 4599 1.00 within the limit
R10x10-referenced-modules L9M3 4599 4599 1.00 within the limit
R10x10-referenced-modules L9M4 4599 4599 1.00 within the limit
R10x10-referenced-modules L9M5 4599 4599 1.00 within the limit
R10x10-referenced-modules L9M6 4599 4599 1.00 within the limit
R10x10-referenced-modules L9M7 4600 4600 1.00 within the limit
R10x10-referenced-modules L9M8 4600 4600 1.00 within the limit
R10x10-referenced-modules L9M9 4599 4599 1.00 within the limit
R10x10-referenced-modules App 3631 3631 1.00 within the limit
S12-mocks App 2622 2622 1.00 within the limit
S16 App 3294 3294 1.00 within the limit
E32-inline-mocks App 9318 9318 1.00 within the limit
C1500-mock-chain App 162671 162671 1.00 within the limit
A300-app App 657909 657909 1.00 within the limit
CH1500-chain App 162666 162666 1.00 within the limit
RG600-ring App 67489 67489 1.00 within the limit
SH100-self-holding App 14874 14874 1.00 within the limit
ORD400-ordinary App 144200 144200 1.00 within the limit
RT20-roots-over-tree App 78842 78842 1.00 within the limit
RT100-roots-over-tree App 84203 84203 1.00 within the limit
APP100x800x3 App 179601 179601 1.00 within the limit
APP300x3000x3 App 687960 687960 1.00 within the limit
MR20x1000-many-roots App 114412 114412 1.00 within the limit

The compiler's time on single functions: 0 finding(s), reported and not failed.

The compiler's time on single functions of SafeDICore, release build.

Measure Function Time Limit Verdict
optimizing static SafeDICore.DependencyTreeGenerator.holes(of: SafeDICore.Instantiable, generator: SafeDICore.ScopeGenerator, bindsReceivesAgain: Swift.Bool, namesApartAtRoot: SafeDICore.DependencyTreeGenerator.PublicMockRootLevel.NamesApart, parameters: [SafeDICore.SeamSignature.Parameter], assembledPlaces: SafeDICore.SeamAssembledPlaces?, factsView: SafeDICore.SeamFactsView?, receiversByParameter: [SafeDICore.Property : [SafeDICore.SeamSignature.Receiver]], proof: SafeDICore.TypeAccessProof, instantiables: [SafeDICore.TypeDescription : SafeDICore.Instantiable]) -> SafeDICore.DependencyTreeGenerator.HolesAndPlaces (the longest within the limit) 2.3 s 10 s within the limit
type-checking instance method SafeDICore.(file).SeamPlacesDrafts extension.declarationListDifferences(from:parameters:) (SeamPlacesDrafting+Reentries.swift:69) (the longest within the limit) 3.1 s 5 s within the limit

One base graph in sixteen, on a stream of its own, gains MainLoader, a
@mainactor class whose mockAttributes spell the main actor, built by an
actor's main-actor mock and by a second mocked type: a @mainactor class whose
mock spells the main actor too, or a class main-actor only through its
superclass whose loader's initializer and hand-written mock spell @mainactor.
A preview the compile adds beside the generated code passes each mock a
closure for the loader's builder that touches main-actor state. With the
builder fix reverted, seeds 38 and 59 fail to compile. The mock mirror
oracle skips the draw's mocked types, which a nonisolated root cannot build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQL2AyjmTVDPHyoJd4Z
… the pass

The pass that decides which builders spell their type's mockAttributes now
reads the attributes from their parsed syntax instead of scanning the string,
computes each type's builder attributes once and hands every spelling site the
result, returns at once where no type spells a closure attribute or every one
that does has constructions spelling them all, walks only what the mock roots
reach otherwise, and reads each declaration from its own concrete type's entry.
Its walks count their steps, and a test checks that doubling the mock roots at
most doubles them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQL2AyjmTVDPHyoJd4Z
Swift 6.2.4's release builds abort in swift_task_dealloc ("freed pointer was
not the last allocation") where nested async withValue calls are inlined into
one frame, as the builder attributes' binding was beside generateMockCode's
own. The binding now runs in an unoptimized function kept out of line, the
function it wraps is kept out of line too, and a module whose builders spell
no attributes binds nothing. The rules sentence is shortened to keep the
rules a generator file loads within their budget.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQL2AyjmTVDPHyoJd4Z
…leases

The draw's actor is a shape 2.3.0 rejects, so the release acceptance
fixture, drawn for comparison, leaves it out the way the other actor draws
do. The draw also moved the smoke and known-issue fixture and partition
hashes, which this re-pins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQL2AyjmTVDPHyoJd4Z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants