Giter Club home page Giter Club logo

Comments (3)

NiceKaleido avatar NiceKaleido commented on August 14, 2024

ever found an answer to that?

from docs.

voidpointer0x00 avatar voidpointer0x00 commented on August 14, 2024

ever found an answer to that?

I haven't actually lookes through the code after all this time 😂
But from my experience io-threads is responsible for loading/reading and saving chunks operations. Still don't know other options for the parallelism one and not sure about worker threads. I just set worker threads equal to io-threads and it gives Nx performance boost for chunks (N = number of threads) (chunky was generating ±20 chunks at a time and with that changed to 5 the number went up to ±80).

from docs.

voidpointer0x00 avatar voidpointer0x00 commented on August 14, 2024

So, after some looking through the code, basing on these lines

ChunkTaskScheduler.newChunkSystemGenParallelism = useParallelGen ? newChunkSystemWorkerThreads : 1;
ChunkTaskScheduler.newChunkSystemLoadParallelism = newChunkSystemWorkerThreads;

I assume that

  • worker-threads is responsible for the number of threads that will work on generating new chunks
  • 'io-threads' is responsible for loading chunks (I believe all read/write operations)

And the valid options for gen-parallelism are true, on, enabled and false, off, disabled. This option controls whether to use the parallel generation or not; the default value is true at the time (bcd8dc2c1).

String newChunkSystemGenParallelism = config.genParallelism;
if (newChunkSystemGenParallelism.equalsIgnoreCase("default")) {
    newChunkSystemGenParallelism = "true";
}
boolean useParallelGen;
if (newChunkSystemGenParallelism.equalsIgnoreCase("on") || newChunkSystemGenParallelism.equalsIgnoreCase("enabled")
    || newChunkSystemGenParallelism.equalsIgnoreCase("true")) {
    useParallelGen = true;
} else if (newChunkSystemGenParallelism.equalsIgnoreCase("off") || newChunkSystemGenParallelism.equalsIgnoreCase("disabled")
    || newChunkSystemGenParallelism.equalsIgnoreCase("false")) {
    useParallelGen = false;
}

from docs.

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.