Linux bluetooth development
 help / color / mirror / Atom feed
* [RFC 0/5] Remote device cache support
@ 2014-01-14 11:11 Szymon Janc
  2014-01-14 11:11 ` [RFC 1/5] android/bluetooth: Split devices list to devices and bonded_devices Szymon Janc
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Szymon Janc @ 2014-01-14 11:11 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Szymon Janc

Hi All,

This adds support for permanent cache of remote devices info. Cache size is
limited to DEVICES_CACHE_MAX (currently 100) and oldest devices (based on
timestamp) is removed if cache gets full.

notes:
 - there is still place for improvements in number of reads/writes done.
   Will work on that when current cache approach is accepted.
 - there is no need to cache SDP (we cache UUIDs)

Comments are welcome.

-- 
BR
Szymon Janc

Szymon Janc (5):
  android/bluetooth: Split devices list to devices and bonded_devices
  android/bluetooth: Use defines for settings and devices files paths
  android/bluetooth: Always store device info
  android/bluetooth: Add support for caching remote device info
  android/bluetooth: Add support for loading caches devices from storage

 android/bluetooth.c | 199 ++++++++++++++++++++++++++++++++++++++--------------
 1 file changed, 148 insertions(+), 51 deletions(-)

-- 
1.8.3.2


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-01-14 18:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-14 11:11 [RFC 0/5] Remote device cache support Szymon Janc
2014-01-14 11:11 ` [RFC 1/5] android/bluetooth: Split devices list to devices and bonded_devices Szymon Janc
2014-01-14 15:42   ` Luiz Augusto von Dentz
2014-01-14 18:03     ` Szymon Janc
2014-01-14 11:11 ` [RFC 2/5] android/bluetooth: Use defines for settings and devices files paths Szymon Janc
2014-01-14 11:11 ` [RFC 3/5] android/bluetooth: Always store device info Szymon Janc
2014-01-14 11:11 ` [RFC 4/5] android/bluetooth: Add support for caching remote " Szymon Janc
2014-01-14 15:49   ` Luiz Augusto von Dentz
2014-01-14 17:55     ` Szymon Janc
2014-01-14 11:11 ` [RFC 5/5] android/bluetooth: Add support for loading caches devices from storage Szymon Janc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox