ladybird/Libraries/LibDatabase
Timothy Flynn 71c7ab208e LibDatabase: Enable the WAL and set the synchronous pragma to normal
Let's do this by default. The APIs to override these are provided if
needed.

In a simple localStorage.setItem loop:

    for (let i = 0; i < 100; ++i) {
        localStorage.setItem(`item_${i}`, `value_${i}`);
    }

This reduces the runtime from ~3.5 seconds to ~50 milliseconds on my
machine.

Co-Authored-By: Tim Ledbetter <tim.ledbetter@ladybird.org>
2026-01-28 21:43:09 +01:00
..
CMakeLists.txt LibDatabase+LibWebView: Extract our SQLite wrapper to its own library 2025-10-14 13:40:33 +02:00
Database.cpp LibDatabase: Enable the WAL and set the synchronous pragma to normal 2026-01-28 21:43:09 +01:00
Database.h LibDatabase: Add APIs to set the journal mode and synchronous pragmas 2026-01-28 21:43:09 +01:00
Forward.h LibDatabase+LibWebView: Extract our SQLite wrapper to its own library 2025-10-14 13:40:33 +02:00