-
|
Hello. I want to know why 'make manifests' is so slow. I haven't modified any jsonnet or libsonnet files. The following is my execution time: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
https://github.com/prometheus-operator/kube-prometheus/blob/main/build.sh ./build example.jsonnetI use this script above and It works fast for me RESULT$ time ./build.sh example.jsonnet
./build.sh example.jsonnet 2.94s user 0.15s system 97% cpu 3.183 total |
Beta Was this translation helpful? Give feedback.
-
|
I was also shocked that compiling this few files takes horribly long. Solution: The normal jsonnet is a terrible program, but google made a new pure go version of it, go-jsonnet. Want to go faster? Try out sJsonnet: https://www.databricks.com/blog/2018/10/12/writing-a-faster-jsonnet-compiler.html |
Beta Was this translation helpful? Give feedback.
https://github.com/prometheus-operator/kube-prometheus/blob/main/build.sh
I use this script above and It works fast for me
RESULT
$ time ./build.sh example.jsonnet ./build.sh example.jsonnet 2.94s user 0.15s system 97% cpu 3.183 total