-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Set `inhibit-modification-hooks` to `t` This results in a 40% speedup without noticeable user impact. This is surprising because `jsonian--huge-edit` already wrapped the call in `combine-change-calls`, setting `before-change-functions` and `after-change-functions` to `nil`. * Add backup to .gitignore
- Loading branch information
Showing
6 changed files
with
38 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
lint.log | ||
bin | ||
test-assets/large-json-file.json | ||
*.backup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
| Command | Mean [s] | Min [s] | Max [s] | Relative | | ||
|:---|---:|---:|---:|---:| | ||
| `fundamental-mode` | 1.444 ± 0.174 | 1.301 | 1.734 | 1.00 ± 0.12 | | ||
| `prog-mode` | 1.442 ± 0.039 | 1.402 | 1.488 | 1.00 | | ||
| `jsonian-mode` | 2.296 ± 0.013 | 2.289 | 2.332 | 1.59 ± 0.04 | | ||
| `json-mode` | 3.775 ± 0.033 | 3.762 | 3.867 | 2.62 ± 0.07 | | ||
| `javascript-mode` | 13.599 ± 0.288 | 13.341 | 14.145 | 9.43 ± 0.32 | | ||
| `fundamental-mode` | 1.357 ± 0.007 | 1.346 | 1.372 | 1.00 | | ||
| `prog-mode` | 1.431 ± 0.009 | 1.419 | 1.444 | 1.05 ± 0.01 | | ||
| `jsonian-mode` | 2.315 ± 0.021 | 2.284 | 2.347 | 1.71 ± 0.02 | | ||
| `json-mode` | 3.846 ± 0.062 | 3.781 | 3.992 | 2.83 ± 0.05 | | ||
| `javascript-mode` | 13.638 ± 0.099 | 13.439 | 13.816 | 10.05 ± 0.09 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
| Command | Mean [s] | Min [s] | Max [s] | Relative | | ||
|:---|---:|---:|---:|---:| | ||
| `jsonian-format-region` | 1.709 ± 0.091 | 1.633 | 1.877 | 1.12 ± 0.06 | | ||
| `jsonian-format-region (minimize)` | 1.524 ± 0.010 | 1.516 | 1.549 | 1.00 | | ||
| `json-pretty-print-buffer` | 4.582 ± 0.006 | 4.576 | 4.593 | 3.01 ± 0.02 | | ||
| `json-pretty-print-buffer (minimize)` | 4.440 ± 0.114 | 4.384 | 4.753 | 2.91 ± 0.08 | | ||
| `jsonian-format-region` | 1.015 ± 0.011 | 1.000 | 1.034 | 1.18 ± 0.02 | | ||
| `jsonian-format-region (minimize)` | 0.860 ± 0.007 | 0.845 | 0.869 | 1.00 | | ||
| `json-pretty-print-buffer` | 4.655 ± 0.005 | 4.650 | 4.666 | 5.42 ± 0.04 | | ||
| `json-pretty-print-buffer (minimize)` | 4.466 ± 0.020 | 4.437 | 4.502 | 5.20 ± 0.05 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters