-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
map.jinja and yaml speed improvements on large formula's #24
Comments
@aboe76 Sounds good! Thanks for adding that to the plan. BTW, there's been a discussion on Slack about using the |
So the idea is to use JSON instead of YAML because parsing is faster? I'm not completely ok with keeping both JSON and YAML files with the same information inside, it will just burden the repository and introduce confusion. If we just want to ease maintenance, maybe add doc about converting JSON to YAML, edit YAML, and then convert YAML to JSON. |
@daks Thanks for sharing your views. Always helps when others share their expertise. Just to be clear, @aboe76 is discussing this in relation to formulas which contain an excessive amount of YAML. It may be worth exploring the performance gains from using JSON in those cases. Just sharing ideas for the time being as we explore how SaltStack Formulas can be improved. I agree with you about avoiding duplication at all costs. I'm sure we can find a solution for this if we decide that we would like to go forward with it. |
Many programmers consider YAML controversial and prefer JSON. This is another consideration. |
@noelmcloughlin added a decent comment on a PR that needs to be included here:
|
Maybe #116 is of interest here. |
Hello. I personally completely prefer YAML since it's much more human readable and support comments. My 2¢. Regards. |
This conversation came up again in a Slack thread starting from this comment:
I've had a little thought about this. How about we still use YAML for development but we convert them to JSON for processing? We ensure that these generated files are also merged into the formula as artifacts to be consumed by |
Perhaps this could be done when packing into an spm. |
see saltstack/salt#39017
if we can convert some formula's which have a big or multiple yaml files
we can convert these to json and import those.
oneliner to convert
We could keep the yaml files for easier maintenance but have a nice readme about why
this formula needs json files for importing...
The text was updated successfully, but these errors were encountered: