Lind-Project / native_client

native_client trusted code base
BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link

Thread Suspend CAS remove and I/O bypass #134

Closed rennergade closed 1 year ago

rennergade commented 1 year ago

Two performance improvements that yield 10% improvement on smaller buffers.

  1. Circumvent the dispatcher on I/O calls with bypass functions.

  2. Remove compare and swap from suspend functions. This only exists because of the Windows VMHole problem which we don't deal with, so we can save a lot of time by just changing the value instead of using CAS.