Comments (6)
Update...
- Use global (this.lovelace) colorcache instead of cache per card
- Remove client-width call (seems not be used anymore)
- Remove most of the spread operators, replace with Merge.mergeDeep() call
Result for air-quality view: from 462.8ms --> 212.8ms !!
from swiss-army-knife-card.
Update...
- for segarc: don't create background and foreground styling (is static) if already created
Result again for air-quality view. From 212.8ms --> 136.4ms !! (original: 462ms, ie 326.4ms less!)
from swiss-army-knife-card.
Small update this time.
- optimize rendering state style strings
With these small increments, the air-quality view with 25 sak cards will probably end up somewhere between 100-120ms I guess, which would be great compared to the start with 462ms 😄
The sake2 view is now just below 100ms. This one also used to be between 300-400ms.
from swiss-army-knife-card.
Switching from say the sake2 view to the air-quality view, where the view was already created/rendered before shows a very small processing time of around 6ms:
This time is from the (dis)onnectedCallback() function and interval processing for the history bar tool.
Other cards:
- decluttering card is much more expensive while switching, using 36.4ms.
- AirVisual card only needs 3ms.
- button-card (used for the three menu buttons) needs 5.1ms
from swiss-army-knife-card.
So far so good.
from swiss-army-knife-card.
Update for the air quality card.
After many updates still around 120ms, where the colorstuff for all the history cards (using a minmaxgradient!!) is the largest cpu cycle user:
from swiss-army-knife-card.
Related Issues (20)
- Add support for theming, palettes and swatches
- Keep extra fields in template configurations after processing the template
- Fix tool styling for all tools HOT 1
- 2.4.5 somehow added .hidden class to usersvg. HOT 11
- Link user actions between tools HOT 3
- Refactor state building (states, animations) and state display (localization, specifics) HOT 2
- iPhone Custom Element Doesn't exist HOT 10
- Live Update of Entities HOT 3
- e.toLowerCase() is not a function HOT 8
- refactor: Remove custom-card-helpers HOT 1
- refactor: Refactor icon state building HOT 1
- Add Sparkline Graph tool HOT 10
- usersvg - png - animations not beingapplied HOT 17
- After updating to v2.5.1 my buienradar integration gives an error "Cannot read properties of null (reading 'toString') HOT 1
- Error : i.setConfig is not a function HOT 19
- Own toolset template not working HOT 1
- Add Progress Bar based on path tool HOT 1
- Cannot read properties of undefined (reading 'template')
- Safari 17 has scale and rotate issues
- scaling not working on mobile (android) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiss-army-knife-card.