Changes

Jump to: navigation, search

Platform/AreWeFunYet

1,892 bytes added, 09:07, 10 March 2012
Local file storage
= Local file storage =
'''TODO:''' fill this section== Current state ==
We support IndexedDB is an API for client-side storage of significant amounts almost completely as of structured data and for high performance searches on this data using indexesFirefox 11. While DOM Storage is useful for storing smaller amounts of data, it The main missing part is less useful for storing larger amounts of structured data. IndexedDB provides a solutionerror handling isn't up to spec yet.
IndexedDB provides separate APIs for synchronous supports storing File and asynchronous accessBlob objects directly in the database. The synchronous API When that happens we store the File/Blob as a separate OS-file which means that performance is intended to be used inside workersvery good and doesn't affect the performance of the database.
* Developer: Jonas SickingYou can also use IndexedDB as just normal data storage rather than read it out yourself from custom file formats. This likely won't have significantly different performance, but can be more convenient. * Target When you store things in IndexedDB Firefox Version: 11* MDN Article: https://developerwill prompt the user when the first database for your origin is created.mozillaIf the user answers yes, the site is granted 50MB of storage.org/enWhen you hit that limit, the user is prompted again and if he/she answers yes again, the site is granted unlimited storage. Hopefully we can remove the prefix for IndexedDBin the Firefox 14 or Firefox 15 timeframe. == What we're currently working on == * AppcacheWe're currently working on an API to let you do more direct File-IO. I.e. the ability to open a 10MB file, seek to the middle of it, and write 100 bytes of data there. The storage for these files will still be IndexedDB. We're also going to remove the prompting for any website that gets installed as an OWA App. All OWA apps will likely get unlimited storage space without any prompting. You will be able to tell when you're installed as a OWA app and thus have this storage space available. * == What do game developers really we're planning on doing in fairly short term == We want to adding the ability for websites to write IndexedDB, and other, data "optimistically" without prompting. I.e. the website will be able to indicate that a given chunk of data doesn't need to be permanent and can be deleted if the user runs low on space. That way we won't need to ask the user before using the user's resources, but in turn we will delete the data if there is that need?. We'll likely also add APIs for doing synchronous IO from inside workers. That way emscripten should be able to compile programs that read and write directly to disk. == Longer term we're also planning on == Adding APIs for dealing with .zip files.* equivalent Adding APIs for interacting with the HTTP cache. I.e. to load URLs into it, enumerate what's there, and possibly extract cache tokens that ensure that data remains in Flashthe cache as long as the token is held alive. Adding APIs for converting between Typed Arrays and strings, Silverlight?in both directions. ''We should find someone that can work on this in a more short order''
= WebSockets =
Confirm
716
edits

Navigation menu