replicant-frameworks_native/libs/binder
Jeff Brown 20b3da9a01 Optimize fillWindow to improve reverse-seek performance.
Bug: 5520301

When an application requests a row from a SQLiteCursor that
is not in the window, instead of filling from the requested
row position onwards, fill from a little bit ahead of the
requested row position.

This fixes a problem with applications that seek backwards
in large cursor windows.  Previously the application could
end up refilling the window every time it moved back
one position.

We try to fill about 1/3 before the requested position and
2/3 after which substantially improves scrolling responsiveness
when the list is bound to a data set that does not fit
entirely within one cursor window.

Change-Id: I168ff1d3aed1a41ac96267be34a026c108590e52
2011-10-28 01:46:18 -07:00
..
Android.mk PermissionCache caches permission checks 2011-06-27 17:42:15 -07:00
Binder.cpp
BpBinder.cpp Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF) DO NOT MERGE 2011-10-26 09:57:54 +01:00
CursorWindow.cpp Optimize fillWindow to improve reverse-seek performance. 2011-10-28 01:46:18 -07:00
IInterface.cpp
IMemory.cpp MemoryHeapBase: Save and binderize the offset 2011-06-27 13:48:51 -07:00
IPCThreadState.cpp Rename (IF_)LOG() to (IF_)ALOG() DO NOT MERGE 2011-10-25 16:28:24 +01:00
IPermissionController.cpp
IServiceManager.cpp
MemoryBase.cpp
MemoryDealer.cpp
MemoryHeapBase.cpp MemoryHeapBase: Save and binderize the offset 2011-06-27 13:48:51 -07:00
MemoryHeapPmem.cpp
Parcel.cpp Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF) DO NOT MERGE 2011-10-26 09:57:54 +01:00
PermissionCache.cpp PermissionCache caches permission checks 2011-06-27 17:42:15 -07:00
ProcessState.cpp Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF) DO NOT MERGE 2011-10-26 09:57:54 +01:00
Static.cpp