Git Product home page Git Product logo

Comments (8)

ST-DDT avatar ST-DDT commented on May 23, 2024 2

Before we jump into the caching rabit hole, we should try async IO first.

from faker.

xDivisionByZerox avatar xDivisionByZerox commented on May 23, 2024 1

There are 2 hard problems in computer science: cache invalidation, naming things, and off-by-1 errors.

☝️

from faker.

matthewmayer avatar matthewmayer commented on May 23, 2024 1

For reference:

  • At the moment, pnpm run generate:locales takes about 6s on my machine, a M1 Macbook Air (with only normalization for food module)
  • if i comment out the other modules from definitionsToSkip this increases to 29s on the first run and 19s for subsequent runs.

So maybe the ~13 seconds slowdown is tolerable for now if it will make the code too complex to fix it.

from faker.

matthewmayer avatar matthewmayer commented on May 23, 2024

Could we do some form of caching (like the eslint cache) so it doesn't bother trying to re-normalize unchanged files that have already been normalised?

from faker.

Shinigami92 avatar Shinigami92 commented on May 23, 2024

Could we do some form of caching (like the eslint cache) so it doesn't bother trying to re-normalize unchanged files that have already been normalised?

This was also my idea 🤔
Before implementing something on our own, we should look if we can bring a caching dev-dependency for that 👀

Edit: a really quick search brought e.g. https://www.npmjs.com/package/file-entry-cache to the table 👀

from faker.

Shinigami92 avatar Shinigami92 commented on May 23, 2024

Before we into the caching rabit hole, we should try async IO first.

Oh! That might be a really good idea 👍

from faker.

ST-DDT avatar ST-DDT commented on May 23, 2024

For me the baseline is:

  • next-limited: 12s
  • next-all: 34s

from faker.

ST-DDT avatar ST-DDT commented on May 23, 2024

I created a first refactor for async io:

from faker.

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.