PHP Classes

File: libraries/vendor/league/flysystem/docs/performance.md

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   PHP Slim Framework 3 Modular Application   libraries/vendor/league/flysystem/docs/performance.md   Download  
File: libraries/vendor/league/flysystem/docs/performance.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: PHP Slim Framework 3 Modular Application
Create modular applications using Slim Framework
Author: By
Last change:
Date: 6 years ago
Size: 753 bytes
 

Contents

Class file image Download

layout: default permalink: /performance/ title: API

Performance

Flysystem aims to be as reliable as possible. In some cases this means doing extra checks to make sure the outcome will be as expected. For some adapter this means Flysystem will make extra calls to assert whether or not a file exists. This improves the reliability but also impacts performance. You can opt out of this behaviour.

new League\Flysystem\Config;
new League\Flysystem\Filesystem;

$local = Filesystem($localAdapter, new Config([
    'disable_asserts' => true,
]));

This will disable the asserts which happen before the following calls: write, writeStream, update, updateStream, copy (2x), and delete.

This functionality is available since 1.0.26.