最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

json - Can script debugging be accelerated - Stack Overflow

programmeradmin2浏览0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

There 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.

发布评论

评论列表(0)

  1. 暂无评论