MilestoneFEATURED IN LIVEMINT 40 UNDER 40 • RECOGNIZED BY FORBES INDIA • ISO 27001:2022 CERTIFIED
Magento 2

Faster Composer comes to Magento 2

Kraftors TeamPublished June 5, 2021Updated September 21, 20263 views
Faster Composer comes to Magento 2

One of the more exciting improvements included in Magento 2.4.2 is the support of Composer 2.0. In our tests, this brought a substantial speed increase and less memory usage to Composer commands run against your Magento project code.

How do you benefit from this?

Once you are ready to use Magento 2.4.2 check if you are already using Composer 2.0 by running composer --version. If you are still on the 1.x release you might see something like this:

Still on Composer 1.x

First update to the latest 1.x version with composer self-update followed by composer self-update --2 to get to Composer 2.x (2.0.9 at the time of writing).

If you have used the excellent plugin hirak/prestissimo to bring parallel downloads to Composer now would also be the time to remove it if you had it installed globally. It is no longer required as Composer now supports this out of the box. composer global remove hirak/prestissimo

It's fast

In particular in a Docker for Mac environment have I seen a dramatic overall performance increase. While I don't have any exact timings, overall it went from painfully slow to easy to work with.Extension installed in 8 seconds

Please follow and like us

Share this article with your network and stay updated with Kraftors insights.

K

Written by Kraftors Team

Discussion & Comments (1)

Join the conversation and share your feedback

S
SumitJun 5, 2021

This is very helpful.

Leave a Reply

Your email address will not be published. Required fields are marked *