Thanks Timothy.  I had been testing the simple defrecord and deftype 
definitions in the repl, but tried it with 'java -server' and still got 
roughly equal times.  I was testing the full program with 'lein run', but 
just to be sure tried making a jar and running it with 'java -server'.  The 
deftype version was still about 3X faster than the defrecord version.

Steven, thanks--that's helpful.  I knew that was possible to disassemble 
compiled bytecode, but didn't think I would know enough to understand it.  
I guess that seeing that the code is almost identical would be informative 
even without understanding it.  Thanks for checking (and telling me how to 
do it).

*I'm* not using testing for equality on records/types, or doing anything 
that I'd expect to use hashCode(), but I'm not sure what the Java library 
code is doing.   That's possible.  I'll look into it, and I can ask the 
library designers/maintainers if I have trouble figuring it out.

Thank you!  Great.

Marshall

-- 
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/d/optout.

Reply via email to