设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 软件追踪 查看内容

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

2018-9-14 11:05| 发布者: joejoe0332| 查看: 485| 评论: 0|原作者: oschina|来自: oschina

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

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:


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

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


酷毙

雷人

鲜花

鸡蛋

漂亮
  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部