atlas-engineer / cl-electron

Lisp Interface to Electron.
BSD 3-Clause "New" or "Revised" License
18 stars 2 forks source link

Slow synchronous socket communication #37

Closed jmercouris closed 4 months ago

jmercouris commented 7 months ago

The current method for doing synchronous socket communication is rather slow.

To remedy this we can use a C extension for Node.js to do synchronous socket reads rather than our sync-socket method.

aadcg commented 6 months ago

After some thought, I considered the two possibilities: (1) always sending event.preventDefault() and (2) the approach proposed above.

Both require hacks. The former requires faking input events and the latter complicates the build process greatly.

As of today, and given the information I have, I'd lean on (1).

jmercouris commented 6 months ago

Even if we do simulate fake input events, the input will still be unbearably slow, so I think we should very carefully consider. It is easier to make a build process robust than to improve the speed of a socket.

aadcg commented 4 months ago

Closed by #43.