On Tue, Jun 24, 2025 at 4:39 AM liuhongt wrote:
>
> From: "hongtao.liu"
>
> - /* Uses in a group can share setup code, so only add setup cost once. */
> - cost -= cost.scratch;
>
> It looks like the original code took into account avoiding double
> counting, but unfortunately cost is reset ins
From: "hongtao.liu"
- /* Uses in a group can share setup code, so only add setup cost once. */
- cost -= cost.scratch;
It looks like the original code took into account avoiding double
counting, but unfortunately cost is reset inside the follow loop which
invalidates the upper code, and makes