Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattzeunert/3820af93adc1c4dcdf3afe001a255a36 to your computer and use it in GitHub Desktop.
Save mattzeunert/3820af93adc1c4dcdf3afe001a255a36 to your computer and use it in GitHub Desktop.

Ran a test where I have a location in some minified code, then prettify that code and want to know the new location:

1154.107ms prettier formatWithCursor
 299.370ms pretty-fast (initial)
  25.215ms pretty-fast (cached source map)

Downsides of pretty-fast:

  • doesn't seem to support column-level mapping
  • formatting not as nice as prettier

Source files size was around 300kb of minified JS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment