knossos icon indicating copy to clipboard operation
knossos copied to clipboard

Should process ids be 64 bits long?

Open mstewartgallus opened this issue 8 years ago • 1 comments

I use the pthread_self function for the :process id for events. However, these pointers are 64 bits long and so don't fit for some of the uses Clojure does.

I think this might actually be a common use case but maybe there is too much of a performance problem or something.

mstewartgallus avatar Jun 18 '17 18:06 mstewartgallus

I think arbitrary objects should be fine, you'll just pay some extra penalties for comparisons over bigints. Might be worth remapping those process ids to small numbers just for your own sanity; might make it easier to read the traces. :)

aphyr avatar Jun 18 '17 18:06 aphyr