jow- / ucode

JavaScript-like language with optional templating
ISC License
90 stars 30 forks source link

socket: optimize poll() argument handling #201

Closed jow- closed 4 months ago

jow- commented 4 months ago

Optimize the poll() function implementation to re-use passed in socket/flag tuple arrays as-is in the return value array, which simplifies attaching state to sockets for user code through subsequent fields in the tuple array.