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.

App statistics: Help us make Preact even faster

See original GitHub issue

šŸš€ Making Preact even faster

Good news! Weā€™re experimenting with various ways to speed up Preact even more šŸ’Æ To do so we have various enhancements and optimizations planned for our reconciler. So far weā€™ve come up with multiple different approaches that are battling against each other to claim the speed title or be less memory intensive.

Although we do have a small selection of apps to test the various optimizations, we want to make sure that we optimize the things that actually matter most to everyone. We some intuitions what that might be, but itā€™s always better to have some solid data!

For this reason weā€™ve added a new ā€œStatisticsā€ panel to the Preact Devtools extensions. It allows you to measure statistics for our renderer and will help us get a picture of which optimizations will matter the most.

šŸ‘‹ How you can help

To start you need to have the Preact Devtools extension installed. Only the latest version (1.1.0) has the ā€œStatisticsā€-tab. The extension is currently waiting approval and you can see the status for your browser below:

  • Chrome: Released
  • Edge: Released
  • Firefox: Released

Now weā€™re ready to go!

  1. Open Preact Devtools and go to the ā€œStatisticsā€ tab
  2. Click the red ā€œRecordā€ button or the ā€œReload and record statsā€ button right next to it
  3. Navigate through your app like a typical user would
  4. Post a screenshot of the ā€œStatisticsā€-Panel in this thread.

Here is an example of what it looks like after measuring preactjs.com for a while by clicking through various pages:

Screenshot from 2020-07-11 16-23-18

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:14
  • Comments:26 (6 by maintainers)

github_iconTop GitHub Comments

7reactions
srdjancommented, Jul 11, 2020
Screen Shot 2020-07-11 at 11 47 54 AM
4reactions
austinjpcommented, Jan 6, 2021

image

If itā€™s of use, hereā€™s a small screenshot of the UI that Iā€™m building. Itā€™s a toy Bayesian network modeller. Everything is a Preact component. Data is adjusted using sliders which are drag-to-resize divs, which causes lots of re-rendering. Iā€™ll probably refactor that at some point. Probably šŸ˜„

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Progressive Web Apps
Preact is an excellent choice for Progressive Web Apps that wish to load and become interactive quickly. Preact CLI codifies this into an...
Read more >
Preact | Preact: Fast 3kb React alternative with the same ES6 ...
Fast 3kB alternative to React with the same modern API. ... Virtual DOM Components make it easy to share reusable things - everything...
Read more >
Debugging Preact Apps
Preact ships with a lot of tools to make debugging easier. They're packaged in a single import and can be included by importing...
Read more >
Signals
What makes Signals unique is that state changes automatically update components and UI in ... with ergonomics that speed up the development of...
Read more >
Tutorial
Rendering text is a start, but we want to make our app a little more interactive. We want to update it when data...
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