andriyko / sublime-robot-framework-assistant

Robot Framework plugin for Sublime Text3
MIT License
109 stars 43 forks source link

Updating the database should not block the Sublime usage #197

Open aaltat opened 7 years ago

aaltat commented 7 years ago

When creating or updating the internal database, the operation can take quite a long time. Now those operations block the usage of the Sublime, which is not good practice. Make the command for updating the database as non blocking operations.

idxn commented 5 years ago

@aaltat I would like to have this feature. Could you please guide me how to implement this? I'm not sure I'm capable enough to do that but I'll give it a chance.

aaltat commented 5 years ago

Usually Sublime commands are blocking, but it should be possible to launch the database creation in a separate process and out of Sublime context. The problem is that, when it's out of Sublime context, we lose the way to communicate with back to Sublime (example how to communicate errors). And for that problem, I don't have a solution.

Instead of this, I would first try to make the database creation as fast as possible. First some profiling should be done and then improvements can be applied.

But if you want to tackle this issue, one should design how the communication back to Sublime is done.

idxn commented 5 years ago

Profiling should be easier then 👍