-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
Hi guys,
I just notice the build for a somehow complex less file was taking about 4s. I did some debug and found that the imports are parsed several times. Even when they were already previously parsed.
I have made a simple change to the import-manager as a proof of concept
with that small change the build time was reduced to 1.5s, I guess because in my use case some files: (constants, mixins and others) were included several times from different files
The change I did is very naive, and we can make sure we create a cache for each instance of the less object created.
Also, if we store this cache to a local file in the users filesystem we can reuse it for the next run and this will a build be reduced to just milliseconds. Are there any plans of enabling something like that. Would be really nice to have.