Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opti : Detecting specific part of content changes from modified file #73

Open
tu2-atmanand opened this issue Oct 28, 2024 · 0 comments
Open
Labels
brainstorm These issue/feat needs to be discussed and have to find the solution optimization The algo/code can be optimized. A better approach

Comments

@tu2-atmanand
Copy link
Owner

tu2-atmanand commented Oct 28, 2024

At present the only thing which is not optimized is :

  • Real-Time Scanning is ON : If user is making lot of changes in lot of files and there are already lot of tasks at various locations inside the file. But the user is not making any changes to the content of the task. Then, the file is being contineously scanned when the user is changing the focus from the editor. This is causing the the Task Board to get refresh again and again, inspite of nothing has been changed of the task content.
  • Real-Time Scanning is OFF : In this case, its not a problem, since all the modified files are being scanned at once and also the board is getting refreshed only once.

Possible Solution

After the files has been scanned, a function can be created which will basically compare the previous task and the new task detected from the current file. Only if any one of the task content has been changed, then only it will be updated in the tasksData and the board will be refreshed. But this comparing function will be costly.

Need to come up with a better solution where, we can find which part of the file has been changed and whether there is any task or task's content on that line.

@tu2-atmanand tu2-atmanand converted this from a draft issue Oct 28, 2024
@tu2-atmanand tu2-atmanand added optimization The algo/code can be optimized. A better approach brainstorm These issue/feat needs to be discussed and have to find the solution labels Oct 28, 2024
@tu2-atmanand tu2-atmanand changed the title Opti : Detecting what is changed from modified file Opti : Detecting specific part of content changes from modified file Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
brainstorm These issue/feat needs to be discussed and have to find the solution optimization The algo/code can be optimized. A better approach
Projects
Status: Important Backlog
Development

No branches or pull requests

1 participant