This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commits on Feb 10, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 7d6c6c0 - Browse repository at this point
Copy the full SHA 7d6c6c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for f3d4107 - Browse repository at this point
Copy the full SHA f3d4107View commit details -
[core] Moving caching logic to DefaultFileSource
This results in OnlineFileSource containing precisely the logic we want for reuse by OfflineFileSource, and no more.
Configuration menu - View commit details
-
Copy full SHA for dbb8e58 - Browse repository at this point
Copy the full SHA dbb8e58View commit details -
Configuration menu - View commit details
-
Copy full SHA for 025375a - Browse repository at this point
Copy the full SHA 025375aView commit details -
Configuration menu - View commit details
-
Copy full SHA for cdedb66 - Browse repository at this point
Copy the full SHA cdedb66View commit details -
[all] Do not set Response data for 404s
For AssetFileSource and the node FileSource this was already the case; this makes the other implementations consistent.
Configuration menu - View commit details
-
Copy full SHA for 7eb1a91 - Browse repository at this point
Copy the full SHA 7eb1a91View commit details -
2
Configuration menu - View commit details
-
Copy full SHA for e9302c7 - Browse repository at this point
Copy the full SHA e9302c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for c3c4c7b - Browse repository at this point
Copy the full SHA c3c4c7bView commit details -
Configuration menu - View commit details
-
Copy full SHA for c91b44b - Browse repository at this point
Copy the full SHA c91b44bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4bde1b0 - Browse repository at this point
Copy the full SHA 4bde1b0View commit details -
[core] Disable SQLite busy timeouts so that multiple readers can acce…
…ss the same database
Configuration menu - View commit details
-
Copy full SHA for 96e0e52 - Browse repository at this point
Copy the full SHA 96e0e52View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d42321 - Browse repository at this point
Copy the full SHA 5d42321View commit details -
4
Configuration menu - View commit details
-
Copy full SHA for ff15bd5 - Browse repository at this point
Copy the full SHA ff15bd5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5910124 - Browse repository at this point
Copy the full SHA 5910124View commit details -
[core] Implement an eviction policy for OfflineDatabase
When inserting an cached resource, or removing a region, remove least-recently used resources and tiles, not used by offline regions, until the used database size, as calculated by multiplying the number of in-use pages by the page size, is less than the maximum cache size minus 5 times the page size. In addition, OfflineDatabase may be configured to ignore cache puts of individual resources larger than a certain size. This policy is similar but not identical to the former SQLiteCache policy: * It accounts for offline, by exempting resources required by offline regions from eviction. * It must delete from two tables (resources and tiles), rather than one. Currently the strategy is naive: evict 50 rows at a time from each table. * It makes maximumCacheSize and maximumCacheEntrySize completely independent. The SQLiteCache implementation evicted when `usedSize > maximumCacheSize - 2 * maximumCacheEntrySize`. This evicts when `usedSize > maximumCacheSize - 5 * pageSize`. * It uses a non-unlimited default value for maximumCacheSize: 50 MB. We should have always had a limit in place; "a cache without an eviction policy is a resource leak".
Configuration menu - View commit details
-
Copy full SHA for db3620c - Browse repository at this point
Copy the full SHA db3620cView commit details -
[core] Eliminate maximumCacheEntrySize
Instead, the eviction policy accounts for the actual size needed for an incoming put.
Configuration menu - View commit details
-
Copy full SHA for a9e0c1b - Browse repository at this point
Copy the full SHA a9e0c1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0cf450e - Browse repository at this point
Copy the full SHA 0cf450eView commit details -
[core] Optimize offline database schema
* Under the hood, SQLite creates surrogate keys (ROWID) anyway. We may as well take advantage of this and use the surrogates for foreign keys as well, since they are simpler and more efficient than compound foreign keys. * Create indexes for efficient eviction queries
Configuration menu - View commit details
-
Copy full SHA for 40ecdeb - Browse repository at this point
Copy the full SHA 40ecdebView commit details
Commits on Feb 11, 2016
-
[core] Eliminate tilesets table
This results in a ~1% increase in database size, which is worth it for reducing complexity and making the tiles and resources tables more similar in structure.
Configuration menu - View commit details
-
Copy full SHA for 7e287ca - Browse repository at this point
Copy the full SHA 7e287caView commit details -
Configuration menu - View commit details
-
Copy full SHA for 20be32f - Browse repository at this point
Copy the full SHA 20be32fView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.