<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/139613>139613</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            lldb-dap says global scope with 10k+ variables is not expensive.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          otomn
      </td>
    </tr>
</table>

<pre>
    lldb version 20.1.4
dap request
```
{"command":"scopes","arguments":{"frameId":6815744},"seq":8,"type":"request"}
```
dap response
```
{"body":{"scopes":[{"expensive":false,"name":"Locals","namedVariables":7,"presentationHint":"locals","variablesReference":1},{"expensive":false,"name":"Globals","namedVariables":11915,"variablesReference":2},{"expensive":false,"name":"Registers","namedVariables":2,"presentationHint":"registers","variablesReference":3}]},"command":"scopes","request_seq":8,"seq":0,"success":true,"type":"response"}
```
Expectation:
Globals should definitely be considered as expensive.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyclM9u2zAMxp9GvggNZMaO4oMP6bJsA3bqYddBlphEmyy5opw2bz_4T5N261psQICAoUj-PuqLFJE9eMSalbes3GaqT8cQ65BC67MmmHPtnGn4CSPZ4DmIRb4omNgY1fGI9z1SYmLDVmL-iA2TtwxAh7ZV3jAAttwwANKhQxpC-MAAVDz0LfpE84GxZh9Vi1_mmtU6L2VRMLmdKgjvp8R6itO5w0v3JxKA4fxLnomUuuAJX0UdVD7HuKIuN8NWxh_xsUNP9jTP3CtHOIF41V5Bvgat3FXmkDPfVLSqcU8t5ZTqIhL6pJIN_rP16dLCvWxxeqq-wz1G9Hoels-b-Re6Ty407-HleZWXb4-G_xh9hwdLCePbw-Gd3cQ_uvyNcTkwltuLfd7x42yg77-77BKLOe61RpppU-zxVTPOZnvNjR8fO9STsuG02Mx3wukYeme4wb31NqE78wa5Dp6swYiGK-KXVS8yUy9NtaxUhnUuCylkJYXMjrVSWum9kqBKo9a5FthApY1UWhZ5oyGzNQgoRZlDXpWlkAvEVVGaplqv9mtTyTUrBLbKuoVzp3YR4iGzRD3W-bJa5cvMqQYdja8FgMcHPmYHqeU2i_VQdNP0B2KFcJYSXdskmxyOr8nN8JckdSZ-GMXz8TL4g01HnoufDG755Vq5Je5Deq69j64-ptTRuO4dg93BpmPfLHRoGeyGgfPXTRfDD9SJwW7EJAa7Wcephl8BAAD__yKBfVU">