Comments (2)
I know that async/await takes more memory compared to .then()
.
I don't know about GC being different when using async/await. If you have some resources regarding that you can share them. I'm interested in learning more about this.
I first implemented the library using .then()
instead of async/await but refactored it afterward because the code was harder to understand and iterate on. I believe there might be a place for refactoring back to using .then()
but for now I feel like it's a premature optimization. I am a believer in "Premature optimization is the root of all evil.".
from main-thread-scheduling.
I'm closing this issue as I'm not sure if GC is better when using .then()
instead of await
. However, if somebody adds to the conversation I will open it, so we can discuss it further.
from main-thread-scheduling.
Related Issues (14)
- Add more priorities HOT 4
- Donβt crash SSR HOT 6
- Possible to manually cancel a scheduled function HOT 3
- Support for postTask scheduling? HOT 2
- Easier web workers HOT 8
- Compile errors in v6.0.0 HOT 2
- Comparisson with other frameworks HOT 6
- Can it be used in vue3 οΌ HOT 2
- callback based API HOT 3
- Can't find the effect. HOT 3
- Error when building a project with Vite HOT 2
- Stand-alone JS file? HOT 4
- interrupt the rendering of react HOT 3
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 main-thread-scheduling.