in reply to Sharing XS object?

Now i'd like to share a single instance of it across many threads (due to memory consumption and tree filling time)

You will not gain memory benefits by using threads: they are inefficient in Perl, and, according to 'threads' documentation, any ':shared' scalar will be not only duplicated in both threads, but it will be 1) tied and 2) have additional booking cost.

++ for trying the hard area though.
:)