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.

(maybe) unexpected perf results

See original GitHub issue

Hey, i tested this as a drop-in replacement for the sass package, compiling 48 files (~8k lines total) with no sass features besides nesting and variables. These were the results (using compile & compileAsync): sass-embedded sync 1.853s sass-embedded async 460.744ms sass sync 282.262ms sass async 382.66ms I have no issue with the current performance, but wanted to test the embedded version. Are these expected performance results for my use-case, or could there be a problem?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
kevinramharakcommented, Jan 29, 2022

I’m not to familiar with the implementation details, but I assume there is some overhead in calling compileAsync each time. Not sure if that would be noticable. Would love to take a look at a sample as I’m very invested in having embedded-sass being faster than the js version.

0reactions
nex3commented, Feb 1, 2022

I’m closing this out since, as people have mentioned, this performance difference comes down to the overhead of starting and stopping the embedded process over and over and will tend to disappear once you’re compiling real Sass stylesheets instead.

It’s worth noting that we could mitigate this overhead by adding the ability to re-use the embedded process for multiple compilations, but we’d need to come up with a good API for doing so.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unexpected performance tests results regarding variables in ...
Hi all, I recently used the Camunda performance test framework and more specifically the test regarding the use of variables in workflows.
Read more >
Unexpected performance results with recursion - Stack Overflow
I wonder why i get unexpected performances with these two pairs of obvious examples of recursion. The same recursive function is faster inside...
Read more >
When studying performance, you need to watch out not only ...
Generally speaking, a sudden improvement in performance has one of two sources. The first is the one you like: The explained improvement. Maybe ......
Read more >
What to Do When You Think Your Performance Review Is Wrong
The easiest performance appraisal problems to get resolved may be those where the manager's opinion is based on factually incorrect information.
Read more >
SVG Export - Compound Paths Cause Performance Issues ...
SVG Export - Compound Paths Cause Performance Issues & Unexpected Results ... The final issue, and maybe the craziest to me - if...
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