On Tuesday, March 26, 2013 12:13:54 PM UTC+1, David Powell wrote:

>
> On Tue, Mar 26, 2013 at 10:40 AM, Marko Topolnik 
> <marko.t...@gmail.com<javascript:>
> > wrote:
>
>> What exactly is getting compiled into a class here? Not the map itself, I 
>> believe; that wouldn't even cause this error.
>>
>> From general clues, the code that builds your config map is being 
>> compiled into a method. Without AOT compilation this shouldn't be 
>> happening, but I'm surprised it's happening even with AOT.
>>
>
> I'd guess that this would be a pretty big map to run to over 64k though - 
> though I think Clojure has a single initialiser method that initialises all 
> vars in the namespace, so it is tha total that is important.
>
> I think AOT is irrelevant - the same classes get compiled whether they are 
> AOT'd or not.
>

Each form is compiled individually and nothing is compiled for the 
namespace as a whole. Whether or not this is true for AOT I'm not sure; for 
:gen-class it is definitely not true.

-marko 

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to