RealBadAngel, thanks for suggestions, I really appreciate your help!
But there are some "but"s and questions:
1. Descriptions may change over time. Not so often, but it can happen. Which leads to:
2. Descriptions are changed after all other mods are loaded, so there are probably minetest.after(0) in a translation mod. How do I know when some description-changing-mod will finish to change descriptions if I'm going to store changed ones? I can soft-depend 4itemnames on that translation mod, but still won't be able to determine how much time it'll need.
3. How faster would it be to index
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
than to index
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.registered_nodes[nodename].definition.description
? Does indexing takes that long?
3. Why do you suggest removing meta? It's essential that this mod shows it. At least it was meant to show it.
4. Adding debug output slows this (and any other) mod much more than multi-level indexing of a global table (in a singleplayer). Tell the owner of Acer Aspire One otherwise ;)
I don't say that there's nothing to improve but there are some things to mind.