Title: Pasting long json in REPL is slow · Issue #40626 · nodejs/node · GitHub
Open Graph Title: Pasting long json in REPL is slow · Issue #40626 · nodejs/node
X Title: Pasting long json in REPL is slow · Issue #40626 · nodejs/node
Description: Version v14.18.1 Platform Linux thinkpad-e570 5.14.13-200.fc34.x86_64 #1 SMP Mon Oct 18 12:39:31 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? Copy a large amount of data to your clipboa...
Open Graph Description: Version v14.18.1 Platform Linux thinkpad-e570 5.14.13-200.fc34.x86_64 #1 SMP Mon Oct 18 12:39:31 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? Cop...
X Description: Version v14.18.1 Platform Linux thinkpad-e570 5.14.13-200.fc34.x86_64 #1 SMP Mon Oct 18 12:39:31 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? Cop...
Opengraph URL: https://github.com/nodejs/node/issues/40626
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pasting long json in REPL is slow","articleBody":"### Version\n\nv14.18.1\n\n### Platform\n\nLinux thinkpad-e570 5.14.13-200.fc34.x86_64 #1 SMP Mon Oct 18 12:39:31 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\n1. Copy a large amount of data to your clipboard¹\r\n2. Open the nodejs REPL\r\n3. Paste the data\r\n\r\n¹ The effect can be observed starting at ~2000 chars on my pc with an Intel i7-7500U (4) @ 3.500GHz).\r\nI generated the data using `cat /dev/zero | head -c 2000 | tr \"\\0\" 0 | wl-copy`\n\n### How often does it reproduce? Is there a required condition?\n\nIt is consistent and becomes more noticeable with a larger clipboard content\n\n### What is the expected behavior?\n\nThe pasting should happen instantaneous\r\n\r\nhttps://user-images.githubusercontent.com/24257556/139062239-9ba8ee71-233d-4d88-bc56-fe3387f85588.mp4\n\n### What do you see instead?\n\nOne can see how the content trickles in bit by bit\r\n\r\nhttps://user-images.githubusercontent.com/24257556/139062293-7f86da74-4931-47ca-9ada-0db24e605d4a.mp4\n\n### Additional information\n\nI am using Gnome Terminal but can observe the same behaviour in other terminals like Alacritty. The cpu utilization when pasting goes up to 100%. Other REPLs like python do not show the same behaviour.\r\n\r\n","author":{"url":"https://github.com/septatrix","@type":"Person","name":"septatrix"},"datePublished":"2021-10-27T12:06:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/40626/node/issues/40626"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:82854705-3f4f-82f9-a87c-a3bbcd7db153 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BEB8:2044BB:16A7DD9:1F71B27:6A4C0FDE |
| html-safe-nonce | e15cfaa29718c56d4583937cf263fa13102c16c04ebf2564043d062983867eee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUI4OjIwNDRCQjoxNkE3REQ5OjFGNzFCMjc6NkE0QzBGREUiLCJ2aXNpdG9yX2lkIjoiNDkxMDczMTQ4MDQ5NjA4MjkxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e1539ef56cefe9d94c125d46a4d1ff9432ac0b389638f12ce6912d1f75b5b91b |
| hovercard-subject-tag | issue:1037339095 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/40626/issue_layout |
| twitter:image | https://opengraph.githubassets.com/29fb07e2333a3bdf4c61f4597bbc2e3ccc590f0801719bdabd20054d988ab817/nodejs/node/issues/40626 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/29fb07e2333a3bdf4c61f4597bbc2e3ccc590f0801719bdabd20054d988ab817/nodejs/node/issues/40626 |
| og:image:alt | Version v14.18.1 Platform Linux thinkpad-e570 5.14.13-200.fc34.x86_64 #1 SMP Mon Oct 18 12:39:31 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? Cop... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | septatrix |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0ccfc9e5281bfe12e38a4d632dc422843e4d5b6757917f7efda2f6567d72fea9 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 18812876666a23a0912556e224383baa4c84cf8e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width