gdborton / webpack-parallel-uglify-plugin

A faster uglifyjs plugin.
466 stars 34 forks source link

Change cacheKey generation from JSON.stringify to a regular string. #18

Closed gdborton closed 7 years ago

gdborton commented 7 years ago

Using JSON.stringify on an object containing an asset's source was pretty slow. Concatenating the source with the useSourceMaps variable still produces a unique string, and is many times faster.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.5%) to 69.63% when pulling ec67b2ecba65a954d4e15c88f4c176ba51a3487a on faster-cache-key into 3edc9251f5152e16dcd97be63dab563ac69f9de8 on master.