You are suggesting creating mutable boxed numbers with an object pool.

You might want to do this with a custom classes, not a one-element
array, because you want to be able to tell if this is your hack or
just someone is passing a one-element array ...

> Once the threadlocal cache is of sufficient size (I *think* the
> largest it ever needs to grow is the largest number of primitives in
> any method signature),
I don't think this is true if you take closures into account.

This approach would also add complexity to functions that are supposed
to work for any object, they might have to treat the custom objects
differently ...

Boris

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

Reply via email to