> It could be that the two threads are contending over the Array object > reference (Java arrays aren't pointers). Is there a nice way to > create "subvector" objects that only reference the underlying memory > and not the parent array object?
You might be interested in the *Buffer classes (e.g. FloatBuffer or IntBuffer): http://java.sun.com/javase/6/docs/api/java/nio/Buffer.html You can mark start and end of a buffer and call (.slice myBufferObject) to get a sub vector that shares data. Another nice feature is the ability to set them read only to fit with Clojure's commitment to immutable data. A set of wrappers around these structures that implemented the seq/collection interface (are these the same? I forget) would be a nice addition to clojure-contrib. If you'd like to collaborate, let me know -- otherwise I'd be happy to use whatever you came up with. Cheers, -Mark --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---
