question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Browser freezing when cloning big repo

See original GitHub issue

We discuss on gitter with @burningTyger about perfomence of Big repos, his was not working in electron (20MB) and mine was freezing (15MB) the browser tab (right click was not working) before I get message:

Counting objects: 12462, done.
Compressing objects: 100% (24/24), done.
Total 12462 (delta 28), reused 28 (delta 17), pack-reused 12421

next I’ve needed to wait a bit, but at least I could open dev tools and pause the script. It was not possible before emitter send messages. And the clone was successful (I’m using full clone right now).

the version is from unpkg.org CDN with 0.x.x

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:17 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
jcubiccommented, Jul 5, 2018

\r at the beginning of the message would be as good as parameter I could just use:

if (message[0] == '\r') {
    term.update(message);
} else {
   term.echo(message);
}

also I can add feature to jQuery Terminal that if string have \r at the beginning and no \n it will update last line, didn’t thought about this.

but I think that I can live without this feature, I can just use:

function makeEmitter() {
  var emitter = new EventEmitter();
  var prev;
  emitter.on('message', function(message) {
    if (message.replace(/[0-9%]+/g, '') === prev) {
       term.update(message);
    } else {
       term.echo(message);
    }
    prev = message;
  });
  return emitter;
}

the same with new API I will use:

core.events.on('*:message', (message) => {
   // same code
});
1reaction
jcubiccommented, Jun 29, 2018

Web worker is much easier to manage then service worker.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is my cloning stuck or is it just taking a long time?
Solved: I'm very new to git and I've been cloning a repo from BitBucket cloud in SourceTree to my local machine for roughly...
Read more >
1901650 – System crash during git clone - Red Hat Bugzilla
Description of problem: Cloning a large git repository causes a crash on my system Version-Release number of selected component (if ...
Read more >
How to complete a git clone for a big project on an unstable ...
For some users this may make it impossible to clone a large repository. ... First, do git clone --bare , then rsync -v...
Read more >
Improve rendering of very large files in the Repo File Browser
This recursion implementation is problematic for very large files because resources are limited and at a certain point, the tab freezes and ...
Read more >
[SOLVED] git clone hangs - Overclock.net
Has anyone had issues with a git clone hanging? I can clone the repo from another machine, so I know the server and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found