Searching in text/unicode(?) files is way too slow for software development project.
Posted: Sat Oct 12, 2024 2:42 pm
Example:
Try download this github repo:
https://github.com/vitelabs/vite-wallet
also make sure to downloaded the embedded repo:
https://github.com/vitelabs/vite-web-wallet
As indicated by instructions.
(Optionally try building it and running it on windows, some kind of "promises" issue)
Searching 70.000 files for "promises" in "*.js" takes too long in my oppinion, 360.000 milliseconds, 360 seconds basically last time I tried it which was a few minutes ago on a sandisk extreme portable ssd which I bought for 200 euros believing that it would speed up my search.
(To get to 70.000 files it may be necessary to run npm install first to install all the dependency files)
I could have tried internal ssd or RAM, which in hind sight I should have done first.
Turned out, harddisk is even faster than this external SSD, maybe cause source code was slightly updated and contains now more source, but still.
My preliminary conclusion for now is that it's a single core bottleneck... unicode searching in general is already slow, not sure if these source files are stored in unicode/utf8 format. This is also noticed by SQL server guys, ASCII vs UNICODE can be 8 times faster.
Anyway, I notice textpad is only using 1 core.
So my enhancement suggestion is: implemented multi-threaded searching.
This vitelab code base is a nice example of a real world performance bottleneck, and it suxxx.
Bye for now,
Skybuck.
Try download this github repo:
https://github.com/vitelabs/vite-wallet
also make sure to downloaded the embedded repo:
https://github.com/vitelabs/vite-web-wallet
As indicated by instructions.
(Optionally try building it and running it on windows, some kind of "promises" issue)
Searching 70.000 files for "promises" in "*.js" takes too long in my oppinion, 360.000 milliseconds, 360 seconds basically last time I tried it which was a few minutes ago on a sandisk extreme portable ssd which I bought for 200 euros believing that it would speed up my search.
(To get to 70.000 files it may be necessary to run npm install first to install all the dependency files)
I could have tried internal ssd or RAM, which in hind sight I should have done first.
Turned out, harddisk is even faster than this external SSD, maybe cause source code was slightly updated and contains now more source, but still.
My preliminary conclusion for now is that it's a single core bottleneck... unicode searching in general is already slow, not sure if these source files are stored in unicode/utf8 format. This is also noticed by SQL server guys, ASCII vs UNICODE can be 8 times faster.
Anyway, I notice textpad is only using 1 core.
So my enhancement suggestion is: implemented multi-threaded searching.
This vitelab code base is a nice example of a real world performance bottleneck, and it suxxx.
Bye for now,
Skybuck.