Closed NayakPenguin closed 1 year ago
I think code splitting will work.need to decrease api calls
Can we get on a google meet for 2 mins?
I will today read the whole code.we can schedule meet tomm
Ok sure, do let me know the timings.
Can you pls tell me is that you are calling the api for data to use in chartjs everytime when page load
YES!
Beacuse same api calling and giving same result .we need to use useMemo or callback for optimization
Ok, but the API parameters matter as well! like the particular contest we are looking for - can we manage that?
Yes,suppose if we are calling contest 361 api frequently.if use usememo we can already store the data in this
Ok sure, I think we can do this!
useMemo is not a ssolution,should i do code splitting and break the code into pieces?
useMemo is not a ssolution,should i do code splitting and break the code into pieces?
Yeah sure! @jatingodnani However, I'd like to make a few adjustments before pushing the code. I'll notify you as soon as I've completed them, which should be within the next hour. Additionally, as I mentioned yesterday, this is a complex issue, and I think it would be beneficial to have a discussion on Google Meet. Could you please let me know your availability for scheduling a meeting?
To be honest,i dont understand why it is hapenning because in code we only calling two api
The API is very heavy! If you call it on Postman or something you will realize that. But since the API is made by me on the flask, I can make some required changes as well! That's why wanted a discussion - but if you are busy then it's fine. No issues.
I am currently present in collage,will do meet at night. So this is not official leetcode api how to get the data from leetcode
I am currently present in collage,will do meet at night. So this is not official leetcode api how to get the data from leetcode
Sure, that sounds good. Let's schedule a meeting for tonight.
You're absolutely right; this isn't the official LeetCode API since they don't offer this data. I've customized it myself using Python's Flask and a few other technologies.
You are scrapping data from leetcode??if yes,then whivh tool you are using
Actually, my friend @sailikpandey22 is doing it, I think he is using python beautiful soup and a few other stuff!
@jatingodnani I investigated why this issue was happening and found, that the pull request you submitted included some code that was causing an infinite loop. However, after I made the change of replacing [retrivelocalstorage] with an empty [], the issue with the infinite loop was resolved. As a result, we no longer experience any hanging or freezing. :)
The contest analysis page is currently experiencing slowdowns because it calls a rather resource-intensive API and involves a lot of canvas work with Chart.js.
I'm actively seeking a solution to address this issue.
#help-required
@jatingodnani please have a look!