Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. Hatyr
    3. Topics
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups
    • Blog

    Topics created by Hatyr

    • Fix require times.
      Feature Requests • • Hatyr

      2
      2
      Posts
      3213
      Views

      If you type `console.log('nocache')` right before the `module.exports.loop` line,you'll see, that cache is not permamemt.It means, that the code outside of `module.exports.loop` method (including all your `require()` calls) is executed occasionly.As far as each `require()` call is *CPU-heavy*, you do have that spikes at start sometimes. In the presence of cpu spikes, you may want to get know the real 'used cpu' value, that can be compared to your 'cpu limit'. So, you may calculate script's execution time average, let us say: for the last 30 ticks. At least it works fine for me.
    • I made a thing.
      General Discussion • • Hatyr

      5
      5
      Posts
      6039
      Views

      Nice work. Thanks for sharing!