11 Aug
2010
11 Aug
'10
7:56 a.m.
Hi all, Can anyone explain what the overhead of using StablePtrs is? Specifically I am interested in knowing the time/space complexity of the various Foreign.StablePtr operations and how many memory indirections are involved when using deRefStablePtr. G -- Gregory Collins <greg@gregorycollins.net>
11 Aug
11 Aug
8:12 a.m.
greg:
Hi all,
Can anyone explain what the overhead of using StablePtrs is? Specifically I am interested in knowing the time/space complexity of the various Foreign.StablePtr operations and how many memory indirections are involved when using deRefStablePtr.
There's a hashtable in the runtime that maps pointers to stable pointers. So you have that overhead. Create N StablePtrs, and get a correspondingly large hashtable.
5819
Age (days ago)
5820
Last active (days ago)
1 comments
2 participants
participants (2)
-
Don Stewart -
Gregory Collins