arunanshub / preload-rs

System Optimizer for Linux running on HDDs
https://arunanshub.github.io/preload-rs/
Apache License 2.0
0 stars 0 forks source link

Preloading .dll or .so Files #69

Open WhitePeace36 opened 4 hours ago

WhitePeace36 commented 4 hours ago

Hi, this is more of a question than anything else. Does this app also preload resources like .dll, .so and other files into the memory ?

arunanshub commented 3 hours ago

Yes it's only for Linux so it preloads any shared libraries onto the memory. As for Windows, preload-rs does not support Windows. But fortunately Windows already includes a native prefetch that's enabled by default.

WhitePeace36 commented 3 hours ago

@arunanshub Thank you for the answer :) So when i run something through wine and that programm also has dll files are they also dynamically loaded ?

arunanshub commented 3 hours ago

You're welcome 😄 preload-rs has nothing to do with windows executables and its shared libraries because we exclusively use posix API (readahead, fadvise etc). Wine is just a compatibility layer. However there is a silver lining because Wine is just a wrapper, so preload-rs will notice that and load the necessary linux only shared libraries used by Wine onto the memory to speed up execution.

Also note that if you're using an SSD, you don't actually need preload-rs.

WhitePeace36 commented 2 hours ago

Ok thanks :)

So it isn't useful when i have m2 ssds ?

arunanshub commented 2 hours ago

Nope, I believe you don't need it. Because your M.2 SSDs are fast enough for your system to load the shared libraries almost instantaneously. And if you have a fairly recent CPU then double bingo!

WhitePeace36 commented 1 hour ago

Ok, thank you mate :)