Skip to content

onlyworlds 0.156.1

Choose a tag to compare

@github-actions github-actions released this 27 Nov 06:20
· 36 commits to main since this release
  • Fixed: the depth check before a parse took time growing with the square of a text's length. Since 0.155.0 every reader of a file this package did not write (read_folder, read_world_file, the import doors) first counts the text's nesting, and that scan cut the strings out with a pattern that, on a string left open, retried from every quote to the end of the text: a 16 KB file of escaped quotes took about a second, and a 1 MB one would take about an hour. Valid JSON heavy with quotes read several times slower than before the check. The scan is now one pass over the brackets, quotes and backslashes, linear in the length, with the same answers: held to the old reading on 20,000 random texts, and a 40 KB text of that shape is timed (the old scan took 6.7 s on it).