vercel / vercel/hyper

High CPU when running tasks that use text animations

Open
#3,787 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
44.7k
Forks
3.6k
Avg merge
21m
Merged PRs (30d)
1

Description

  • I am on the latest Hyper.app version
  • I have searched the issues of this repo and believe that this is not a duplicate
  • Mac OS 10.14.5:
  • Hyper.app 3.0.2:
  • Hyper config:
  • The issue is reproducible in vanilla Hyper.app:

Issue

When running git commit with our hooks for linting the cpu goes completely crazy. I'm talking up to 95% cpu usage across all cores. I can run the same command in a native Terminal or JetBrains IDE or VS Code without the cpu hit that Hyper does. While linting the display has an animated text showing that it is working. After about 5 seconds this animation starts to slow as cpu spikes. Any help would be great as one of the main functions I use a terminal for is interacting with git, and if it constantly pegs my cpu then I can't use it. Looking forward to this being remedied as I do love this terminal!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing a linting-hook git commit with animated text in Hyper.app on macOS, then compare CPU usage with native Terminal or another terminal. Trace the text-animation path involved while the hook runs; done means the command completes without sustained high CPU and the animation remains responsive.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, macos
Domain
cli, desktop, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.