Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- configuration.addCompilationCustomizers(
- new ASTTransformationCustomizer(CompileStatic))
- withConfig(configuration) {
- ast(groovy.transform.CompileStatic)
- }
- import groovy.transform.CompileStatic
- @CompileStatic
- void loop() {
- def d1 = new Date();
- int[] t = new int[32*1024*1024]
- (0 .. 32*1024*1024-1).each {
- it -> t[it] = it
- }
- def d2 = new Date();
- println d2.getTime() - d1.getTime()
- }
- loop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement