clojure-clutch / clutch

A Clojure library for Apache CouchDB.
Other
225 stars 37 forks source link

Slim down JavaScript produced for simple ClojureScript views #60

Open cemerick opened 12 years ago

cemerick commented 12 years ago

This is fundamentally a ClojureScript issue. Due to various factors, the smallest hunk of js an optimized ClojureScript fn can produce is ~40K.

View code is loaded quite infrequently, and loading 40k of js is hardly a bottleneck, but having less js coming out of cljs would make debugging and such simpler.

gfredericks commented 10 years ago

Checking in on this -- my guess from overhearing CLJS dev is that this is much better now on the CLJS side, but when I tried forcing a new version of CLJS today I got an error on calling cljs-views/view.

cemerick commented 10 years ago

Yeah, I haven't touched clutch in a long time; I presume its integration with the ClojureScript compiler API is very out of date at this point…

myguidingstar-zz commented 10 years ago

An other approach to consider is to alternate couchdb's javascript engine https://github.com/iriscouch/couchjs