@Jonathan_Blow what happens when you run out of temporary storage? For applications that don't know the maximum size in advance, is using it a bad idea?
-
-
I generally find that most of my temporary memory is bound to the current scope. I have a separate stack pool that keeps the size of my more general frame pool significant lower
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
But then you're just making the problem when to free the arena. And if the arena is used for temporary storage, there might never be a time that it is safe to do that.
-
This Tweet is unavailable.
- Show replies
New conversation -
-
-
+1 for something that grows. Temp storage absolves users from thinking about "when to free" but if in exchange users now need to think about "am I using too much" then I don't think it lowers that much cognitive load.
-
It's also kind of a trap. Code that use temp storage look like something you'd write in a GC'd language, but in fact every call needs to be carefully considered as they contribute to the total size. You would write leaks if you are not extra careful.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.