Kotlin 1.2.70 发布,增量编译速度提高 7 倍

栏目: 软件资讯 · 发布时间: 7年前

内容简介:Kotlin 1.2.70 已发布,这是 Kotlin 1.2 的一个新的 bug 修复和工具更新版本。包括: Kotlin/JS 增量编译改进 Kotlin/JS 增量编译得到了极大的改进。根据新的项目结构,这可以将开发速度提高 7 倍甚至更多。此外,...

Kotlin 1.2.70 已发布,这是 Kotlin 1.2 的一个新的 bug 修复和 工具 更新版本。包括:

Kotlin/JS 增量编译改进

Kotlin/JS 增量编译得到了极大的改进。根据新的项目结构,这可以将开发速度提高 7 倍甚至更多。此外,Kotlin/JS Gradle builds 现在支持跨模块增量编译。

需注意的是,增量编译支持目前仍处于实验阶段,默认禁用,体验前需手动启用:

  • 在 Gradle 项目中,添加  kotlin.incremental.js=true到 gradle.properties或 local.properties

  • 在使用 IntelliJ IDEA 构建的项目中,转到 Settings | Build, Execution, Deployment | Compiler| Kotlin Compiler | Kotlin to JavaScript 并检查 Enable incremental compilation (experimental) 。

多平台项目更新

kotlin-stdlib-common 引入了许多新的特定于平台(platform-specific)的注释:

@JsName@JvmOverloads@JvmStatic@JvmName@JvmMultifileClass@JvmField@JvmSuppressWildcards@JvmWildcard@Volatile@Transient@Strictfp, 和 @Synchronized

IntelliJ IDEA 支持改进

快速修复改进

There’s a new inspection with a quick fix for converting a non-lazy collection transformations chain into a sequence equivalent. Using sequences helps avoid unnecessary temporary allocations overhead and, may significantly improve performance of complex processing pipelines:

Kotlin 1.2.70 发布,增量编译速度提高 7 倍

IntelliJ IDEA 插件的其他改进

  • Intentions to replace an if null-check with ?.let and the other way around

  • Inspection to detect unnecessary with calls

  • Intention to convert a property getter to initializer

  • Inspection and quickfix to replace assertTrue(a == b) with assertEquals(a, b)

  • “Redundant return label” inspection

  • Quick-fix for default parameter value removal

  • forEach parameter unused” inspection

  • Lots of bug fixes and performance improvements

更多详情可查阅发行说明:


【声明】文章转载自:开源中国社区 [http://www.oschina.net]


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

编程语言

编程语言

图科 / 李德龙 / 清华大学 / 2008-1 / 68.00元

本书第1版自1999年出版以来,编程语言的研究已得到迅猛发展。为此,新版尽量贴近现今的发展趋势,以适应当前和未来编程语言设计过程中所伴随的新挑战。本书除了进一步提高了4种程序设计范型及其所用的语言的广度和深度外,还大大丰富了关于语言设计原理的内容,并新增了如Python、Perl这类编程语言的例子。本书主要结构第一部分:原理。第2、4、5、7、9章分别讲述了编程语言的5个核心原理(语法、名称、类型......一起来看看 《编程语言》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具