As described in this quesion TeX memory is very limited due to the limitation of the computer in time of TeX invention.
I want to know is there any way to free up the TeX memory before reaching its limitation. Assume we want to define a lot of macros more than TeX memory capacity. Is there any way to delete many of them and define new macros in place of them, something like the way we can do in many modern languages, e.g. C uses free function to free up the dedicated dynamic memory by malloc.
quran. It uses a lot of macros. Every verse of the Quran has a macro like the waylipsumdoes. It also contains some translations in other languages, e.g. Farsi, English, Deutch. The Quran has 6236 verses, so it has more than 6236*6 macros in total. Some people asked me to add other translations but it causesTeXmemory exceed. I can use just 6236 macros and in every usage of the other translation redefine it, but I think it will be too slow. – javadr Dec 11 '18 at 14:28