in reply to Re^2: Extending perl with C dynamic library.
in thread Extending perl with C dynamic library.

Well, why even simple .so weight so much ? How to slim it down ? ;)

Quite frankly, I wouldn't bother.

If you achieved a full 40k saving it only represents 0.001% of the most modestly configured workstation or server memory.

And that's if the whole of the on-disk representation actually gets loaded into memory, which it probably doesn't.

And if your thought is smaller file will take less time to load. The time spent finding the directory entry and seeking to the file will completely swamp any difference in loading 10k instead of 50k. It is doubtful if you could ever actually measure any difference it might make.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^3: Extending perl with C dynamic library.