Does frequent page manipulation of localStorage.getItem and localStorage.setItem cause performance problems?

as the title

localStorage is a very useful way to store data. I think calling localStorage on every request (operation) will cause performance problems?
is it necessary to use variable storage instead ( localStorage.getItem ) only if the page is refreshed and the variable expires?

Mar.18,2021

Synchronize iMaguo operation, Although it is saved on disk, this read and write does not seem to affect performance. Some browsers will temporarily store the localStorage operation in memory until you close it and then read and write the disk. So during this period, there should be no difference between localStorage operation and saving as a variable


frequent operation of localstorage for a short period of time can cause stutters or rendering process crashes, such as electron. The specific amount of time varies from browser to browser. The electron of the domestic operating system mips is more sensitive and prone to crash
it is recommended to use indexdb to store things with large capacity and frequent operation


recently I encountered this problem. Operating localstorage frequently for a long time will cause stutters and crashes in electron. Solid hammer. My solution is to implement a memory-based localstorage instead.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b33dfc-2b647.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b33dfc-2b647.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?