JeanMars wrote:I have 100 codecs or so in my codec folder, loading them is simply too costly compared to the possible usage.
Yes, but luckily most of them are the ones compiled by Lonny with Pure-C, so they are maybe 10k on average. That makes ~1MB total, which is currently IMHO acceptable, given that the old version took already ~8MB after startup. Also don't forget that you don't need to/should not install all codecs, especially if your are low on memory. Some of them actually load formats i never heard of.
only the SLB wrapper is loaded and loads 'true' SLB installed in gemsys/slb when image is loaded.
Unfortunately not yet, but that could be doable, too.
@Thorsten: having a look at the code, it seems that ldg libraries have preference to the new SLB model, is that intended?
No, there is no preference. The directory is scanned only once, and whichever is listed there first, will be used if there are duplicates. That sort of gives similar problems as order of programs in the auto folder, but having duplicate codecs would be waste of memory, anyway. I might add a check for duplicates, though. But i still hope to get rid of the old LDG codecs altogether, once the converted ones are available, making that check obsolete.