DEV Community

Zach Klippenstein
Zach Klippenstein

Posted on • Edited on • Originally published at blog.zachklipp.com

Implementing snapshot-aware data structures

This post has moved to blog.zachklipp.com.

Top comments (4)

The discussion has been locked. New comments can't be added.
Post has moved to https://blog.zachklipp.com/implementing-snapshot-aware-data-structures/
Collapse
 
jisungbin profile image
Ji Sungbin • Edited

Thanks for the good article!

Collapse
 
aungyehtet profile image
Aung Ye Htet

Now, I'm clear how much snapshot role is vital for Jetpack Compose. Thanks

Collapse
 
jackchen365 profile image
Jack Chen

Thanks for the really good article.
After diving into the snapshot source code, and watching the video droidcon.com/2022/09/29/opening-th...
I found that GlobalSnapshot won't save the previousId when advancing

Image description

From the video we know that when take new MutableSnapshot it always save the previousId

Image description

Seems like the MutableSnapshot will save the previousId

Image description

Collapse
 
vagabond95 profile image
Jihoon Kim

Thanks to this article, I was able to understand the Compose Snapshot System. Thank you for writing a good article.