[IR] Optimize a few hot spots to reduce total CPU time
^KT-61121
This commit is contained in:
@@ -28,8 +28,9 @@ data class File constructor(internal val javaPath: Path) {
|
||||
get() = javaPath.toAbsolutePath().toString()
|
||||
val absoluteFile: File
|
||||
get() = File(absolutePath)
|
||||
val canonicalPath: String
|
||||
get() = javaPath.toFile().canonicalPath
|
||||
val canonicalPath: String by lazy {
|
||||
javaPath.toFile().canonicalPath
|
||||
}
|
||||
val canonicalFile: File
|
||||
get() = File(canonicalPath)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user