I use koldev's JsonParser library to parse config JSON (about 500 lines) in my script. I've found that Kymoto Solutions' Inno Script Studio that I use seriously affects JSON parsing time. Through logging I've found that while executing my installer directly takes a negligible time to parse JSON, it takes 30-50 seconds to parse it running script from Inno Script Studio and 7-8 seconds to parse JSON from InnoSetup IDE.
Are there any compiler options which can affect parsing time that I can pass to compiler? Are there faster JSON parsers for PascalScript, or it's better to just implement custom config format (INI-like, I suppose)?
I use koldev's JsonParser library to parse config JSON (about 500 lines) in my script. I've found that Kymoto Solutions' Inno Script Studio that I use seriously affects JSON parsing time. Through logging I've found that while executing my installer directly takes a negligible time to parse JSON, it takes 30-50 seconds to parse it running script from Inno Script Studio and 7-8 seconds to parse JSON from InnoSetup IDE.
Are there any compiler options which can affect parsing time that I can pass to compiler? Are there faster JSON parsers for PascalScript, or it's better to just implement custom config format (INI-like, I suppose)?
Share Improve this question asked yesterday qloqqloq 1,2831 gold badge11 silver badges17 bronze badges1 Answer
Reset to default 0There are no specific compiler option(s), but You can switch to new Visual Studio compiler to compile the script (3rd party Inno Setup extension is needed: https://marketplace.visualstudio/items?itemName=unSignedsro.VisualInstaller) based on MSBuild.
Visual Studio in general is very well optimized, compiling, parsing etc. is really fast, which may reduce the times for you.
Also you may try switching the library, for example https://github/solodyagin/jsonconfig looks promising and is using different approach than koldev's JsonParser but its newer.