createnextapp / async-local-storage

AsyncLocalStorage is an unencrypted, asynchronous, persistent, key-value storage system that is global to the app in web browser. It should be used instead of LocalStorage.
MIT License
24 stars 6 forks source link

Async ? #3

Open civilianatpoint opened 1 year ago

civilianatpoint commented 1 year ago

making localstorage functions in promise does not make it async. it executes on end of event loop. it still blocks. btw localstorage does not write data to storage, it keeps on ram when you write it. After that chrome write it to storage on threadpoll. This library does nothing

basarat commented 1 year ago

I looked at the code, and I agree. This lib is not providing any performance benefit :rose: No offence to the creator ❤️