diff options
| author | qmuntal <quimmuntal@gmail.com> | 2025-08-25 12:49:37 +0200 |
|---|---|---|
| committer | Quim Muntal <quimmuntal@gmail.com> | 2025-08-26 23:54:57 -0700 |
| commit | afc51ed007ad814fc11273f39055aeea71172557 (patch) | |
| tree | bc2489b3345217d5d0db1900f03d0d2dbf0b7038 /src/debug/elf | |
| parent | 801b74eb95bdd4175e808810e8430415d7bad76c (diff) | |
| download | go-afc51ed007ad814fc11273f39055aeea71172557.tar.xz | |
internall/poll: remove bufs field from Windows' poll.operation
The bufs field is used to avoid allocating it every time it is needed.
We can do better by using a sync.Pool to reuse allocations across
operations and FDs instead of the field.
A side benefit is that FD is now 16 bytes smaller and operation more
stateless.
Change-Id: I5d686d1526f6c63e7ca1ae84da1fbf2044b24703
Reviewed-on: https://go-review.googlesource.com/c/go/+/698798
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/debug/elf')
0 files changed, 0 insertions, 0 deletions
