node-copy-paste
node-copy-paste copied to clipboard
[windows] slow paste performance
xref https://github.com/VSCodeVim/Vim/issues/1299
For me, on Windows, the paste function is noticeably slow - on the order of 1 second. I'm assuming the bottleneck is the vbscript, wondering if there is a possible alternative or optimization?
https://github.com/xavi-/node-copy-paste/blob/9897be123ca03e4946325270dcc80a5736a36cc7/platform/fallbacks/paste.vbs
os: Windows 7 64 bit
version: +-- [email protected]
I know very little about ffi in js, but potentially could use a similar approach to (BSD licensed) pyperclip.
https://github.com/asweigart/pyperclip/blob/f02774f8ff8c9e5ae7d2e498053fe224d9ba0f74/pyperclip/windows.py#L25