Ver. 1.0.2: It's "pretty" fast now!
This is a generally highly recommended update, even though it does not change formatting results. (I marked it as “Major Update” since this makes a huge difference for larger projects.)
Revisions:
-
Considerably sped up formatting with many collapsed parts!
If you have around 100 Commands in a Map’s Events for example, this by default should result in a 10,000% speed-up while formatting that file.
(My original implementation was admitted very inefficient, scaling approximately with the square of the file size in some ways.)
If you’re interested in the details, I originally did a separate string replacement for each of the collapsed values one at a time, restarting the search from the start of the file and creating lots of large temporary string in memory 🫠 (It was the laziest way to implement that.)
Those replacements are now done all at once, which means formatting time should scale about linearly with the amount of data that’s processed. The playtest startup delay should be just about unnoticeable now!
Files
Get Pretty JSON MV + MZ
Pretty JSON MV + MZ
Git-ready data file formatting on playtest: Collaborate in parallel!
More posts
- Ver. 1.0.1Oct 05, 2023
Leave a comment
Log in with itch.io to leave a comment.