Coder Social home page Coder Social logo

Comments (8)

PaintNinja avatar PaintNinja commented on June 28, 2024

In all seriousness, what's the rationale behind wanting a larger limit besides "vanilla datapacks don't have this"?

from fancymodloader.

embeddedt avatar embeddedt commented on June 28, 2024

There are 3.6 x 10^90 possible 64-character mod IDs using only the letters a-z (not even counting the option to use numbers). That's more than 4 billion, meaning you wouldn't be able to store them all in any array-based data structure... I'm skeptical this would ever become a problem in practice.

from fancymodloader.

PaintNinja avatar PaintNinja commented on June 28, 2024

Increasing the min mod ID length to two characters however... That might be worth considering to avoid clashes

from fancymodloader.

TelepathicGrunt avatar TelepathicGrunt commented on June 28, 2024

In all seriousness, what's the rationale behind wanting a larger limit besides "vanilla datapacks don't have this"?

Does there need to be? How about reversing the question here. If it is an arbitrary limit and not actually required for anything, what is the rational for having the limit in the first place?

I was making a datapack-turned-mod lowcode mod. It is a compat datapack between two mods. So the modid started off as the name of the two mods + compat. repurposed_structures_yungs_better_desert_temples. Then I have a second form of the datapack that instead of overriding the original pyramids from my mod, it keeps both variants. Which then would formed the bigger modid of repurposed_structures_yungs_better_desert_temples_with_small_pyramids_compat over 63 limit. I am adjusting it to be repurposed_structures_better_desert_temples_w_small_pyramids_compat to be under limit.

But the limit itself seems silly to have in first place imo.

from fancymodloader.

embeddedt avatar embeddedt commented on June 28, 2024

From a performance perspective - keep in mind that there are often a lot of ResourceLocation objects hanging out in memory, and they don't get interned (unlike ResourceKeys), so encouraging the use of larger namespaces means increased memory usage unless a mod adds ResourceLocation deduplication, which has a speed penalty.

from fancymodloader.

XFactHD avatar XFactHD commented on June 28, 2024

Increasing the min mod ID length to two characters however... That might be worth considering to avoid clashes

The minimum length is already 2 due to how the regexes are set up.

from fancymodloader.

TelepathicGrunt avatar TelepathicGrunt commented on June 28, 2024

From a performance perspective - keep in mind that there are often a lot of ResourceLocation objects hanging out in memory, and they don't get interned (unlike ResourceKeys), so encouraging the use of larger namespaces means increased memory usage unless a mod adds ResourceLocation deduplication, which has a speed penalty.

Ah fair, That is a point

from fancymodloader.

TelepathicGrunt avatar TelepathicGrunt commented on June 28, 2024

Closing as memory usage is a strong argument to not remove limit

from fancymodloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.