Hi, could anyone running compojure-api 2.x please try the latest snapshots (see master branch deploy builds). Please check if the following message is printed:
WARNING: Performance issue detected with compojure-api usage in
If it is (or if you're not sure), please restart your repl with this jvm option:
-Dcompojure.api.meta.static-context-coach={:default :print}
And open an issue with your printed results.
If you have an overwhelming amount of logs to sift through, you can use this to throw an error during compilation so it's the last thing you should see:
-Dcompojure.api.meta.static-context-coach={:default :assert}Background is I'm changing context to be dynamic by default for compatibility with compojure-api 1.x but to compensate I've made inference for safe static contexts much more accurate. I'd like to know if the inference is powerful enough in practice.