Android Program

来源:互联网 发布:ae cs6 mac 编辑:程序博客网 时间:2024/05/16 19:44

We assign the mNotesCursor field to a local variable at the start of the method. This is done as an optimization of the Android code. Accessing a local variable is much more efficient than accessing a field in the Dalvik VM, so by doing this we make only one access to the field, and five accesses to the local variable, making the routine much more efficient. It is recommended that you use this optimization when possible.

原创粉丝点击