ClassCacheTweaker is a mod which caches transformed Java classes in order to load them quickly and speed up modded Minecraft's long loading times.
This mod is highly experimental. Due to its delicate nature, it may cause crashes and freezes, especially during loading. Be careful!
Thanks to nallar for the original proof of concept! It was a great source of inspiration.
- Caches transformed Java classes in a .dat file.
- Implements a "cache validity" check to try to automatically re-create the .dat file upon detected changes.
- Yes, this is a horrible, horrible hack. However, it generally works. Do not ever try to report issues with this mod installed without reproducing it without them. Ever.
- When you change your modpack configuration and/or add/remove/update mods, it is generally a good idea to remove "classCache.dat". While the mod will try to do it automatically, it might not catch certain smaller changes (it mostly checks for changes in the mods/ folder).
Never redistribute classCache.dat with your modpack. If you're a modpack developer, please convince your launcher developer to add functionality to delete classCache.dat upon a modpack update/configuration change. (You can do it yourself for updates by distributing a dummy classCache.dat and having the file be overwritten with said dummy variant on every update, which will cause the file to be recreated.)
- ^ Don't bother. Don't put ClassCacheTweaker in your modpack unless you know very well what you're doing.
- If you're using ClassCacheTweaker in a development environment, it will not cache the class files you are currently working on. That means you can use it as a mod development aid!
- If you have very little RAM, it is generally not a good idea to use this mod - it increases RAM requirements by 50-100MB depending on the size of the pack. (However, I believe that, for most people, the loading time improvements are well worth the added RAM usage.)
- The mod is not supported and is unlikely to work correctly on MCPC+/Cauldron/KCauldron/Thermos/etc.
- The mod currently has issues with larger pre-1.8 modpacks - see here.
- Work around incompatibility with nallar's ModPatcher.
- Add configuration file to disable incompatible transformers by hand.
- Add warning message for non-development environment users of the mod.
- Fix game freezing on load due to a regression caused by the 0.1.1 workaround.
- Fix game crashing on load due to a regression caused by the previously mentioned workaround.
- Work around "game freezing on quit" issue (it may still freeze for a few seconds, but it will quit fine)
- First release