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.

Optimise clean function perf

See original GitHub issue

Cool lib!

What about

const clense = (a, b) => {
  b && a.push.apply(a, b)
  return a
}

or maybe?

const clense = (a, b) => {
  b && a.push.apply(a, [b])
  return a
}

to save some memory via mutating?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
lukejacksonncommented, Jan 25, 2018

Hahaa, I am a small way through implementing these… in Tead like @okwolf suggested! There is only a simple set to start off with. I will push them up after work this evening.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Optimize and clean up Window 10 For Performance Tips
How to make windows 10 boot faster and clear unnecessary File which can cause your pc to get slower by the time. These...
Read more >
Code opinion: performance or clean code?
I don't believe that the answer is either clean code or performant code -- but rather both, by design. Don't prematurely optimize, write...
Read more >
Clean code vs performance - java
The only way to actually improve the performance of a system is by measuring it and focusing only on fixing the actual bottlenecks....
Read more >
How to Speed Up and Clean Up Your PC
Not only will it optimize your PC's speed and performance, but its built-in Disk and Browser Cleaner tool will free up tons of...
Read more >
25 Best Methods To Optimize Windows 10 Performance
25 Best Methods To Optimize Windows 10 Performance · Recommended Tool #1 – System Mechanic Ultimate Defense · Recommended Tool #2 – MyCleanPC ......
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