If I run oss-attribution-generator the generation of the attribution overview took more than 25 minutes.
In a quick research I found out that this code often handles file access asynchronously.
This caused to very high disk load.
I've replaced all this asynchronous code with synchronous one.
This applies to all areas in getNpmLicenses() and getBowerLicenses() where the following methods was used:
jetpack.existsAsync()
jetpack.findAsync()
jetpack.readAsync()
After the integration of the synchronous code, I could reduce the generation time from 25 minutes to 2 minutes.
Tested on:
Windows 10 Enterprise x64bit (Build 1703)
Node v8.9.4
If I run
oss-attribution-generator
the generation of the attribution overview took more than 25 minutes. In a quick research I found out that this code often handles file access asynchronously. This caused to very high disk load.I've replaced all this asynchronous code with synchronous one. This applies to all areas in
getNpmLicenses()
andgetBowerLicenses()
where the following methods was used:After the integration of the synchronous code, I could reduce the generation time from 25 minutes to 2 minutes.
Tested on: Windows 10 Enterprise x64bit (Build 1703) Node v8.9.4