nimahkh / soft_bun

A lightweight and framework-agnostic reactivity system implemented in TypeScript
Other
10 stars 1 forks source link

Performance Aspect #22

Open Mostafa-Mohammadi opened 1 year ago

Mostafa-Mohammadi commented 1 year ago

Hello Nima,

I hope you're doing well! First and foremost, I want to express my appreciation for the excellent work you've done on Soft_bun, Honestly, I learned a lot.

I am reaching out to inquire about the performance aspect of the matter at hand. Specifically, I am keen to understand how Soft_bun handles large-scale states and whether it is optimized for optimal performance in such situations.

nimahkh commented 1 year ago

Hello Mostafa, It is my pleasure, thank you so much The soft bun is a lightweight framework agnostic reactivity system, which means, everything handles purely with Javascript functionalities behind the proxy design pattern, and it is just the beginning ;) it is not ready for enterprise :D I was going to implement memoization to handle large data, but it was not that much efficient and to be honest, it is not convincing me. I would like to know your thoughts, do you have any solution in mind?

nimahkh commented 1 year ago

I just updated the Demo playground and implemented an iterator function to generate big data which is generating numbers in a 1K loop, it seems the performance is not that much high, but it is an opportunity to improve it, I would like to encourage you to collaborate if it is feasible and share your thoughts

there are some issues: