You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@sunfishcode pretty sure I done goofed again. Was listening to the ghost cell podcast and Ralf talked about how you can access all of the elements of the Iterator at the same time thanks to the non-aliasing references. Anyway, I was like, "doesn't raw dir work that way since the lifetime is bound to the buffer?" And then: "Oh shit, we reuse that buffer."
TL;DR: pretty sure people can accumulate entry references into some other structure, but they'll be garbage once the buffer restarts. Need to double check tomorrow. Somehow need lifetime that is bound to the buffer so it can't be dropped but also blocks aliasing so every call to next requires dropping the previous entry.
The text was updated successfully, but these errors were encountered:
@sunfishcode pretty sure I done goofed again. Was listening to the ghost cell podcast and Ralf talked about how you can access all of the elements of the Iterator at the same time thanks to the non-aliasing references. Anyway, I was like, "doesn't raw dir work that way since the lifetime is bound to the buffer?" And then: "Oh shit, we reuse that buffer."
TL;DR: pretty sure people can accumulate entry references into some other structure, but they'll be garbage once the buffer restarts. Need to double check tomorrow. Somehow need lifetime that is bound to the buffer so it can't be dropped but also blocks aliasing so every call to next requires dropping the previous entry.
The text was updated successfully, but these errors were encountered: