Generator-jhipster: Bring back the "fast" profile

Created on 26 Oct 2017  路  5Comments  路  Source: jhipster/generator-jhipster

Some time ago we had a "fast" profile, which was removing some non-essential Spring beans in order to boot faster.

I just did a test with the simplest possible microservice (no database, no registry, etc...) and startup time is nearly 8 seconds! That's incredibly slow for something so simple.

Doing a simple fast profile I could bring down that startup time to 5.5 seconds, and I'm pretty sure we could do better.

So how about bringing back the "fast" profile?

area

Most helpful comment

@PierreBesson I'm using it !

All 5 comments

+1

And maybe we could remove the cc (continious compilation) profile. I'm not sure anyone is using it.

@PierreBesson I'm using it !

馃憤

I see many of you want this, but for the moment I'm giving up...

Here are the reasons:

  • This complexifies the code, as you have the fast profile everywhere.
  • I can win a bit more than 2 seconds at start-up, which isn't that much. Besides, we have hot-reload, so that's even less interesting.
  • It's a bit complex to use, as there are less features.

Here is a patch of what I did on a "simple" application. It's pretty easy to use it and test.
patch.txt

Was this page helpful?
0 / 5 - 0 ratings

Related issues

edvjacek picture edvjacek  路  3Comments

Steven-Garcia picture Steven-Garcia  路  3Comments

dronavallisaikrishna picture dronavallisaikrishna  路  3Comments

kaidohallik picture kaidohallik  路  3Comments

lsadehaan picture lsadehaan  路  3Comments