blob: 833c43e00b00857442eaa2e6e8ec2c3fb60a9f7e [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "sql/sql_features.h"
namespace sql {
namespace features {
// Skip the logic for preloading databases.
// Enabling this feature turns sql::Database::Preload() into a noop.
// suggests that sql::Database::Preload() was added
// without any proper benchmarking, and the logic is a pessimization for modern
// OS schedulers.
// TODO(pwnall): After the performance impact of the change is assessed, remove
// sql::Database::Preload() and this flag.
const base::Feature kSqlSkipPreload{"SqlSkipPreload",
} // namespace features
} // namespace sql