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.
|
|---|