From: Lady <redacted>
Date: Sat, 3 Feb 2024 20:25:41 +0000 (-0500)
Subject: Reduce subshells created by percent·encoding
X-Git-Tag: 0.5.1~3
X-Git-Url: https://git.ladys.computer/Shushe/commitdiff_plain/b96a5ac986977275066876a3383966f1f4e24d30?ds=inline;hp=b96a5ac986977275066876a3383966f1f4e24d30

Reduce subshells created by percent·encoding

It’s possible to use `%0A` as a component separator assuming that
file·names will never contain newlines; this allows all filenames to
be processed at once rather than needing a separate subshell for each.

It’s not necessary to encode each path component separately; just
encode the whole path and replace `%2F` with `/` at the end. It’s not
possible for file·names to contain literal `/` characters.

The above two changes should increase the speed of operations such as
building the parser catalog in ⛩️📰 书社 considerably.
---