Skip to content

Cork Bottleneck #1209

@ronag

Description

@ronag

I'm currently bottlenecked by cork. Probably normal.

One possible improvement I was think of is whether we could change the API so the we don't need to do a slow call back into js, i.e. instead of:

socket.cork(() => {
  sendAlotOfData(socket)
})

We could do:

socket.cork()
try {
  sendAlotOfData(socket)
} finally {
  socket.uncork()
}

Or with modern JS even:

{
  using socket.cork()
  sendAlotOfData(socket)
}
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions