Groovy performance

Hi. We are going to start the CRUD project. I have experience using groovy and I think this is the right tool. I'm concerned about performance. How good groovy is compared to the Java solution. According to estimates, we can have up to 100 simultaneous users. We are going to use MySql DB and tomcat server.

Any comments or suggestions?

thank

+3
source share
4 answers

Thanks for the answers and tips. I like groovy. In some cases, these may be some performance issues. Groovy ++ might be a better choice. In turn, I would rather give a chance to "spring roo", which has a huge overlap with Groovy, but you remain in java and NO roo.jar is added to your project. Therefore, you do not pay any additional costs for its use. In addition, roo allows reverse engineering and engineering. Unfortunately, the plugin library is pretty small so far.

Louis

0
source

(!) Groovy; , , . Groovy Grails; , , .

, . ( , ), .

Groovy . , Groovy (, Groovy) GroovyObject invokeMethod(..). , Groovy, , Java, invokeMethod(..) ( ).
, GroovyObject MetaClass. .. .

, Groovy Java, () , . JIT Groovy, - Java , .

, Groovy ++. Groovy @Typed, () - Java. , , , Groovy ++ Groovy IDE. Groovy ++ Groovy. , Groovy ++ '@Typed , , GORM Grails.

, Grails.

GORM Grails , Hibernate , .

() Java. GORMs CRUD .

Grails (. SpringCache Cache Filter). Ehcache.
, ( ), , -, .

, , " ".: -)

, Groovy/Grails - , -.

EDIT: , Java JIT- ... Groovy

class Hello {
    def getGreeting(name) {
        "Hello " + name
    }
}

public class Hello
  implements GroovyObject
{
  public Hello()
  {
    Hello this;
    CallSite[] arrayOfCallSite = $getCallSiteArray();
  }
  public Object getGreeting(Object name) { 
    CallSite[] arrayOfCallSite = $getCallSiteArray(); 
    return arrayOfCallSite[0].call("Hello ", name);
  }

  static
  {
    Long tmp6_3 = Long.valueOf(0L);
    __timeStamp__239_neverHappen1288962446391 = (Long)tmp6_3;
    tmp6_3;
    Long tmp20_17 = Long.valueOf(1288962446391L);
    __timeStamp = (Long)tmp20_17;
    tmp20_17;
    return;
  }
}

. Jochen Theodoru, Groovy, :

Groovy , , , , hashmap , , , , hasmap, end, , .

, JIT , .

"" , " , ". , , , , , ( " ?" ) , , , ( ).

+9

( -) - , /. , , , . Photoshop, raytracer. -CRUD.

showstopper, , , N + 1 ( ORM), ..

: /-, , / -.

+3

50 100 . , , mysql - , .

, 1000 . . http://www.ewebhostguide.com

Caution: sometimes Comcast connections are not available, and the site may appear. But this only takes a few minutes. Disadvantages of the site in the basement.

0
source

Source: https://habr.com/ru/post/1773207/


All Articles