ã¨ããåå¼·ä¼ã§ã³ã¼ããã»ããã¨è¨ãããã®ã§æ¸ãã¦ã¿ã¾ãã DiffUtil 24.2.0ã§è¿½å ãããã2ã¤ã®ãªã¹ãã®å·®åè¨ç®ãè¡ãã¦ã¼ãã£ãªãã£ã¼ã§ãã è¨ç®éãO(N)ã移åæ¤ç¥ããã ã¨O(N^2)ã§ãã calculateDiffã®çµæãdispatchUpdatesTo(adapter)ã¨ãããã¨ã§ãRecyclerView.Adapterã®å種notifyç³»ãå¼ã°ããããæãã«ã¢ãã¡ã¼ã·ã§ã³ãªã©ããã£ã¦ããã¾ãã 使ç¨æ¹æ³ã¯ããã¥ã¡ã³ããåç §ãã¦ãã ããã Diffable DiffUtil.calculateDiffã«ã¯DiffUtil.Callbackãå¿ è¦ã§ãã ãããAdapterãã¨ã«å®è£ ããã®ã¯é¢åãªã®ã§ãæ¯è¼å¯è½ãªã¢ã¤ãã ã表ãã¤ã³ã¿ã¼ãã§ã¼ã¹ã¨Callbackã®å®è£ ã¯ã©ã¹ãå®ç¾©ãã¾ãã 好ã¿ã¯å¥ããã¨æãã¾ãããã¤ãã§ã«ã°ãã¼ãã«ã¹ã³ã¼ãé¢æ°ãä½ãã¾ãã inter
{{#tags}}- {{label}}
{{/tags}}