Hi,
I noticed that one part of my code was being obscenely slow, so I set
*warn-on-reflection* to true.

(let [b (byte 30)]
  (> b 30))

gives Reflection warning, NO_SOURCE_PATH:498 - call to gt can't be
resolved.

But:
(let [b (int 30)]
  (> b 30))

Is there a reason for having a byte-overloaded version of ">"?
Currently I'm reading bytes from a byte-array and then upcasting it to
integers to avoid reflection.

Thanks
  -Patrick
--~--~---------~--~----~------------~-------~--~----~
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
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to