4

在我的聊天应用程序中,我添加了记录聊天的功能。日志保存在 sdcard 上,并且BufferedWriter每个人/频道聊天完成时都会保持打开状态。我想知道这可能会对 sdcard 及其寿命产生什么影响。

BufferedWriter的缓冲区大小是 1024,我也想知道是太小还是太大。

4

1 回答 1

3

Flash memory cards have an endurance of about a million write cycles per area and probably include wear levelling which basically means trying to write to different areas so specific spots dont wear out.

So after about (sizeOfSDCard/sizeOfYourData)*1,000,000 writes, you will have ruined their card.

Practically, this means you probably aren't going to cause any harm.

于 2010-04-22T22:55:31.473 回答