且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

机器人节约动态视图值

更新时间:2023-11-19 08:18:34

我解决了我的问题。

我分配给事件监听器需要在数据库中eventuall结束了所有的东西。
在焦点变化,我将数据保存到数据库中。因此,我不抱任何列出任何控股的答案。我随时更新数据库。不幸的是,它是不好的性能。幸运的是,我们能负担得起这样的表现。

I assigned eventlisteners to all things that need to eventuall end up in a database. On focus change, I save the data to the database. So I don't hold any lists whatsoever holding answers. I update the database on the fly. Unfortunately, it is bad for performance. Fortunately, we can afford this performance.

我试图运行这个code告诉while循环来执行它的3000倍。除了服用一段时间(大约平均3-4seconds)视图生成,所有运行良好。因此,我不需要跟踪所生成的对象的方法之外。安卓/ Java没有为我。

I tried to run this code telling the while loop to execute it 3000 times. Apart from the view generation taking some time(about 3-4seconds on average), all ran fine. So I don't need to keep track of the generated objects outside of the method. android/java does that for me.