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.

Some specific .less lines take very long to check

See original GitHub issue

This is probably not a bug but an inconvenient result of the hashing algorithm of the rabin-karp algorithm. I had twelve lines in one .less file slow down my checks from 4.5 seconds to 250 seconds. Solved it by adding this specific .less file to the ignore list. These lines were the culprit for me:

@1dp_elevation: 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 2px 1px -1px rgba(0, 0, 0, .12), 0px 1px 3px 0px rgba(0, 0, 0, .2);
@2dp_elevation: 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 3px 1px -2px rgba(0, 0, 0, .12), 0px 1px 5px 0px rgba(0, 0, 0, .2);
@3dp_elevation: 0px 3px 4px 0px rgba(0, 0, 0, .14), 0px 3px 3px -2px rgba(0, 0, 0, .12), 0px 1px 8px 0px rgba(0, 0, 0, .2);
@4dp_elevation: 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12), 0px 2px 4px -1px rgba(0, 0, 0, .2);
@6dp_elevation: 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12), 0px 2px 4px -1px rgba(0, 0, 0, .2);
@8dp_elevation: 0px 8px 10px 0px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12), 0px 5px 5px -3px rgba(0, 0, 0, .2);
@9dp_elevation: 0px 9px 12px 1px rgba(0, 0, 0, .14), 0px 3px 16px 2px rgba(0, 0, 0, .12), 0px 5px 6px -3px rgba(0, 0, 0, .2);
@12dp_elevation: 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12), 0px 7px 8px -4px rgba(0, 0, 0, .2);
@16dp_elevation: 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12), 0px 8px 10px -5px rgba(0, 0, 0, .2);
@24dp_elevation: 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12), 0px 11px 15px -7px rgba(0, 0, 0, .2);

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
kucherenkocommented, Jun 9, 2021

We can use maxTokens option for change detection quality and speed

0reactions
Kurt-von-Lavencommented, Sep 26, 2022

No; it has been proposed but not implemented.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Deal With Long Lines on a Cruise Ship
The last thing you want to be doing is waiting in long lines on a cruise ship. Here are tips to help you...
Read more >
The Truth About Wrinkles: 5 Common Wrinkle Myths ...
Unfortunately, there's no magic pill that will make your skin look young forever, but there are ways to prevent damage and reduce fine...
Read more >
Unsold Cruise Cabins: How Cruise Lines Fill Them and ...
Because cruise lines will not start discounting until they have to (usually after final payment is due for that sailing), you'll need to...
Read more >
15 ways that cruising newbies waste money on their first ...
But booking tours through your line isn't the only option, and it's not always the best option. In many cases, you can save...
Read more >
6 Things You Can Get Free On A Cruise - If You Ask ! - YouTube
How can you get free things on your next cruise, and get much more bang for your cruising bucks? I discuss the 6...
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