def message

bend-lint-rules@0.2.0.0 · performance/drop_in_bang.bend:22

import bend-lint-rules@0.2.0.0/performance/drop_in_bang.bend as DropInBang
import Base

22# Functions
23# =========
24def message(callee: String) -> String:
25  callee
26    ++ "! only frees what it receives, as it returns Unit, and a GPU frees slower than its CPU. GPU: measured 15x slower than without the `!` on a discrete GPU (CUDA), dropping a 1M-leaf image; with unified memory (Apple M-series), freeing a scene in a bang made a frame 12.9 ms, against 8.0 ms (\"bend guide shaders\"). CPU (`--gpu off`): 10% slower. JS: no GPU, so no change. Confidence: high, as a GPU does not speed up freeing. Remove the `!`; to drop the last frame, let the next frame's fork tree drop it, a quadrant per tile (\"bend guide shaders\"). If a timing shows the `!` faster here, expect this finding."

Uses (2)

Used by (1)