Jef Driesen a1ff11e08e Cache the last page to reduce the number of I/O operations.
In bigpage mode, we always read large pages, regardless of the amount of
bytes requested by the caller. Excess bytes are simply discarded. This
is inefficient because the same large page will be downloaded multiple
times, when requesting more than one 16 byte page from the same large
page. By caching the pages internally, we can greatly reduce the amount
of I/O operations.

In practice, applications and also libdivecomputer's internal algorithm
for downloading the dives will typically request contiguous pages, so we
only need to cache the last page.

This implementation is based on ideas and code contributed by Dirk
Hohndel.
2014-10-27 12:24:18 +01:00
..
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2012-06-21 21:39:24 +02:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-08-26 22:08:41 +02:00
2014-10-10 21:27:15 +02:00
2014-01-26 21:51:33 +01:00
2014-03-14 09:44:10 +01:00
2013-08-22 09:15:55 +02:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2012-06-21 21:42:37 +02:00
2014-03-19 09:16:07 +01:00
2014-08-16 22:46:53 +02:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2013-05-13 19:18:08 +02:00
2013-05-13 19:18:08 +02:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-06-19 08:58:51 +02:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00
2014-03-19 09:16:07 +01:00