Repository navigation
Replies: 2 comments
|
Buuut, on the other hand, there is article: https://kripken.github.io/blog/wasm/2019/07/16/asyncify.html Which says:
I am going to test it more, and I will return with the results |
|
I was able to get the same performance with |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I was discovering wa-sqlite (thanks to @rhashimoto !), and it seems that unwind/rewind doesn't have such performance impact as James said:
As I understand, it makes stack unwind/rewind only when it needs to read/write the data from IDB, and data reading/writing will always have the biggest bottleneck. Also, you can whitelist which functions should be asyncified. So actually the performance impact is not as high as it could be.
Also, here is a good video about asyncify: https://www.youtube.com/watch?v=qQOP6jqZqf8
So, maybe we should switch absurd-sql to use asyncify. As the other benefit, we will not need those COOP headers that decrease the ability to use aburd-sql a lot (like you are not able to use iframe, embed youtube videos etc etc)
All reactions