Source: flareapp.io

Optimising Flare
Our whole team is currently working hard on the next version of Flare. In this rewrite of Flare, we decided to move from Laravel resources to our own Laravel data package for sending data to the front end.

In this blog post, we will look at how we've improved the performance of the package and, thus, the complete Flare application.

Running PHPBench gives the following results: PHPBench (1.2.9) running benchmarks... #standwithukraine with configuration file: /Users/ruben/Spatie/laravel-data/phpbench.json with PHP version 8.2.3, xdebug ✔, opcache ❌

#[Revs(500), Iterations(2)] public function benchDataCreation() { MultiNestedData::from([ 'nested' => ['simple' => 'Hello'], 'nestedCollection' => [['simple' => 'Flare'], ['simple' => 'is'], ['simple' => 'awesome'], ], ]); }
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners