v0.2.0
The primary focus of this release has been to optimize the performance of mdsf
.
This has been accomplished in two ways:
Support for formatting using multiple threads
mdsf
can now format using multiple threads.
The amount of threads used can be adjusted using the --threads <THREAD_COUNT>
argument. The default value is 0 which uses all available cores.
Caching of formatted files
mdsf
now supports caching formatting results. This can be enabled using the --cache
argument.
Using --cache
will in most cases result in a dramatic performance increase.
For now the --cache
argument can only be supplied to the format
command.
Stale caches can be removed using the cache-prune
command.
mdsf cache-prune
All caches can be removed by supplying --all
to the cache-prune
command.
mdsf cache-prune --all
The cache key is based on the contents of the mdsf config and the file content of each document. A change to either will break the cache.
mdsf
assumes that the available formatters has not changed since the cache was generated. This means you should prune your cache after updating the version of a formatter (mdsf cache-prune --all
).
What's Changed
- build(deps): serde_json to 1.0.118 by @hougesen in #326
- chore: add default formatter for kotlin by @hougesen in #327
- build(deps): bump json_serde to 1.0.118 by @hougesen in #328
- feat: add line between stderr output by @hougesen in #329
- feat: add support for multithreading by @hougesen in #330
- refactor: remove to_string from format_multiple by @hougesen in #331
- docs: command help by @hougesen in #332
- refactor: move tempdir to current directory by @hougesen in #333
- feat: add --cache argument by @hougesen in #335
- docs: add base command usage by @hougesen in #336
Full Changelog: v0.1.2...v0.2.0