It's not that slow here, maybe 0.5-0.75 seconds to save, but my computer is really fast. It seems to perform better if replacing `{` with `\n{\n` so that the lines aren't so long (or so that fold points are more spread out, not sure).
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/791#issuecomment-162759579