Improving a Laravel-based app

By Christophe Dujarric, on Jan 21, 2016

During his participation to the #FireUpMyMac contest, Marko Lekić had a chance to find a massive improvement in his usage of Laravel for one of the apps he built. Working at fleka.me, “Interactive design studio specialized in web and mobile”, the app he developed enables you to use your mobile phone when at a restaurant, and find the most appropriate wine in the menu for the dish you’ll order.

Pairing a dish to a wine requiring to run complex formulae, they rely on a cron job executed each night. They managed to improve this cron job very simply and efficiently when they found the root cause of slowness with Blackfire.io:

Before the fix:

Wall Time 57.6s
CPU Time 49.4s
I/O Time 8.23s
Memory 100MB

After the fix:

Wall Time 3.42s (-93%)
CPU Time 3.02s (-94%)
I/O Time 407ms (-95%)
Memory 23.1MB (-77%)

Read the full article here.

Christophe Dujarric

Christophe is the Chief Product Officer at Blackfire. He's an engineer, but probably one of the least "tech" people in the company. He's wearing many hats, from product management to marketing and sales. He loves the beauty of simple solutions that solve actual problems.