kvdroid / Kvdroid

Some Pyjnius tools for Kivy-Android developments.
MIT License
94 stars 24 forks source link

Faster Kvdroid #51

Open kengoon opened 9 months ago

kengoon commented 9 months ago
          @kengoon btw i have an idea but don't know if it's ridiculous.

We have a big performance issue when we intend to do some tasks with pyjnius. For instance, I needed to get all the installed apps activities for one of my apps. When I do that task with pyjnius it nearly takes 10 seconds to complete, but when I execute the same task with pure java it only takes 1 or 2 seconds. So I had to do that task for my app by calling that java function in PythonActivity.java at startup.

So my question is what if we find another way to communicate with Java to do those tasks kvdroid provides? How to create that channel?

I tried it with OSC protocol just like how we do it to communicate with service.py and actually, it worked but I'm not sure if it's a good approach.

It could be a separate project as well.

what do you think?

Originally posted by @yunus-ceyhan in https://github.com/kvdroid/Kvdroid/issues/47#issuecomment-1718140565

kengoon commented 9 months ago

@yunus-ceyhan we can continue the conversation for kvdriod performance improvement For now, I don't have any update on this until tomorrow