Giter Site home page Giter Site logo

Still slow as hell about template HOT 8 CLOSED

discordeno avatar discordeno commented on September 24, 2024
Still slow as hell

from template.

Comments (8)

 avatar commented on September 24, 2024

Hey there! Could you provide more details as to what you are referring to?

from template.

itohatweb avatar itohatweb commented on September 24, 2024

The Boilerplate is not so slow. Also it is only an example of how you can approach things using discordeno. It is not a bot template you can just throw in and use for a big bot.
(Ayntee already wrote it: You cannot expect help if you don't provide any information at all.)

from template.

Ungolim avatar Ungolim commented on September 24, 2024

Hey there! Could you provide more details as to what you are referring to?

Of course! It's incredibly slow, beyond the pale, when first populating its cache by having Deno scan and read all files in the relevant folders (commands, events, etc.).

With a i9-9900k at 5GHz and 64GB 4000Mhz RAM it takes around 1 minute to load the boilerplate up (or restart it for the matter!). Completely unacceptable.

Re-engineer the boilerplate to make cache loading optional at the very least.

Deno bots will never replace Golang bots

image

from template.

itohatweb avatar itohatweb commented on September 24, 2024

So starting takes so long because we are forcing Deno to import all files in the src folder. BUT this only takes so long once at initial start-up after only files that were changes get recompiled.

from template.

itohatweb avatar itohatweb commented on September 24, 2024

If you have issues with the files getting compiled every time this is not an issue with this boilerplate but with Deno itself.

from template.

Ungolim avatar Ungolim commented on September 24, 2024

So starting takes so long because we are forcing Deno to import all files in the src folder. BUT this only takes so long once at initial start-up after only files that were changes get recompiled.

Is Deno a joke?

If you have issues with the files getting compiled every time this is not an issue with this boilerplate but with Deno itself.

Deno is very much a joke atm

from template.

itohatweb avatar itohatweb commented on September 24, 2024

What do you mean with joke?

from template.

 avatar commented on September 24, 2024

So starting takes so long because we are forcing Deno to import all files in the src folder. BUT this only takes so long once at initial start-up after only files that were changes get recompiled.

Is Deno a joke?

If you have issues with the files getting compiled every time this is not an issue with this boilerplate but with Deno itself.

Deno is very much a joke atm

Deno type-checks each module that is loaded, you can specify the --no-check flag to the deno run command to disable type-check. Here is the solution for this issue.

from template.

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.