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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners