Open ishaan1013 opened 4 months ago
@ishaan1013 - First of all kudos to you for creating such an amazing project!!, was really nice to use and try my hand at a contribution. Have raised a PR for this, let me know if that looks good. Also, had noticed a couple of issues / observations that we could discuss that can be raised as separate issues:
(Will raise the below if needed as separate issue tickets later this week)
I see that each key press gets sent to liveblocks so , we might need debouncing around that as well (unless thats a default unchangeable behavior of liveblocks itself)
Playing around with the editor and typing in it results in thousands of socket XHR requests , not sure if that is by design
After sometime I see these errors on the console
Also, Im not very well versed with CF but in about a day, looking at the metrics, it looks like there is room for optimizing the number of requests to CF (other than the debouncing) as well? What do you think?
Great points. In all honesty I didn't do a ton of testing and I noticed a few of the issues you mentioned, although not specifically to this extent. There's definitely a ton of room for optimization, so feel free to continue looking into it and keep me updated! I'd love to hear about your journey through this and help you out along the way.
@ishaan1013 yeah, will try looking at it sometime next week. Btw, does the pr look good to merge? Let me know if there is any issues with it
We currently update Cloudflare R2 on every file save.
Implementing debouncing would reduce # of queries when a user frequently saves the same file.