[3.6.10 regression] Pasting in shell is SIGNIFICANTLY SLOW

Zhongteng Gui via Cygwin <[email protected]>
Newsgroups gmane.os.cygwin
Message-ID <SL2P216MB2271EAB89C33B38EB8650387EFDB2@SL2P216MB2271.KORP216.PROD.OUTLOOK.COM>
This bug was first discovered in MSYS2, at:
1. https://github.com/msys2/msys2-runtime/issues/358
2. https://github.com/msys2/MSYS2-packages/issues/6501

However, it also reproduces on Cygwin bash, so I posted it here.

How to reproduce (copied from above issue):
Copy any multiline text and paste it to terminal. (singleline text pasting is
also slow, but not that significant)
For 3.6.9, the time cost is nearly ignorable, especially for bash.
For 3.6.10, both bash and zsh takes significant time (more than 20s for less
than 200 characters, 6 lines).

Note: the regression is slightly smaller in Cygwin than in MSYS2. The paste
speed in bash is about 1000 chars/s on MSYS2 3.6.9, 100 chars/s on Cygwin
3.6.10, and 10 chars/s on MSYS2 3.6.10. Cygwin 3.6.9 is not tested because I'm
unfamiliar with Cygwin, and failed to downgrade.

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.