1. When do I need to execute fds_gc. ?
2. After I execute the fds_record_delete, do I need to execute the fds_gc ?
1. When do I need to execute fds_gc. ?
2. After I execute the fds_record_delete, do I need to execute the fds_gc ?
Hi,
2. After I execute the fds_record_delete, do I need to execute the fds_gc ?
No. You should not call fds_gc() every time you have deleted or updated a record. Calling it very often will only increase power consumption and flash wear without gaining anything.
1. When do I need to execute fds_gc. ?
That is application specific. For most applications it probably makes sense to check every now and then how much flash you have available and how much you have the can be cleaned / garbage collected using fds_stat(). If that is over a threshold that makes sense in your application, then do GC.
OK, I got it. Thank you for your reply.