node-copy-paste icon indicating copy to clipboard operation
node-copy-paste copied to clipboard

[windows] slow paste performance

Open chris-b1 opened this issue 9 years ago • 1 comments

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]

chris-b1 avatar Feb 20 '17 18:02 chris-b1

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

chris-b1 avatar Feb 21 '17 14:02 chris-b1