Hello Two scripts: - short.txt Test of quoting, (q)-flag vs. printf -v output '%q ' result: 35 ms vs. 26.6 sec - Q_short.txt – test of dequoting, (Q)-flag vs. eval "str=$quoted" result: 25 ms vs. 77 ms I've compared "printf -v" code to Bash 4.4 and it yields 227 ms there, so much better than 26.6 sec. So while "Bash can serialize/deserialize too, let's compare speed of this method" is interesting thing and I share, performance of "printf -v" on Zsh is troubling. Any idea from where it comes from and if it can be improved? https://github.com/zdharma/hacking-private/tree/master/quoting -- Sebastian Gniazdowski psprint /at/ zdharma.org