> 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.
It certainly seems as if it is the whole namespace that is being compiled. The startup file was fine for a while, when I had maybe 3k or 4k of data that I was holding in a map, which told the software about the different types of data it needed to work on. But then my company gave me a list of all search node numbers that we have used to structure the way we make calls to Solr. The most obvious place for me to put this was in that same map, so I could use it to build search queries on the fly, but, as I said, I then ran into the 64k limit. I guess, moving forward, I will store the data in MongoDb and I will read into that var once the app is running. On Tuesday, March 26, 2013 7:13:54 AM UTC-4, 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. >> > > Java classes can contain code, and primitive constants, everything else, > even array initialisers in Java, have to be compiled into initialiser code > that builds the data-structure. > > 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. > -- -- 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.