botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
78 stars 87 forks source link

[BUG] Emulator getting slower and slower #1628

Open ptrckbp opened 2 years ago

ptrckbp commented 2 years ago

Describe the bug If you keep using Botpress to develop an app, the emulator's responses tends to slow down with time.

To Reproduce Steps to reproduce the behavior:

  1. Open Botpress (you can use botpress-electron, but I was noticing the problem before too)
  2. Develop chatbot
  3. Notice Emulator responses slowing down over time

Expected behavior It shouldn't slow down, or it should show an error.

Environment (please complete the following information):

node's environment :

  NODE_ENV: 'development',
      VERBOSITY_LEVEL: '2',
      PORT: port.toString(),
      AUTO_MIGRATE: true,

running bp binary with'-vv' flag

Additional context Sometimes I notice it, sometimes I don't. The change is always subtle but over time it can grow to become a big delay.

Sorry in advance for not having a good way to reproduce this! I avoided posting about this before for this reason, but last week I was training people in Botpress and the trainees noticed the slowdown themselves. I'm so used to it I ignore it, so I'm writing this down, so we are forced to deal with it!