fixture-monkey icon indicating copy to clipboard operation
fixture-monkey copied to clipboard

Enhance Kotlin Reflection

Open seongahjo opened this issue 2 years ago • 4 comments

Describe the feature you request

Enhance Kotlin Reflection.

(Optional): Suggest A Solution

Replace kotlin.reflect with kotlinx.reflect.lite

seongahjo avatar Sep 27 '23 13:09 seongahjo

What are the benefits of using that library?

https://kotlinlang.org/api/kotlinx-metadata-jvm/kotlin-metadata-jvm/kotlin.metadata.jvm/

I'm interested in contributing to this issue, and I've been playing around with it, but I don't see any benefit.

this-is-spear avatar Aug 07 '24 23:08 this-is-spear

@this-is-spear I think it will reduces the performance degradation of Kotlin reflection.

I've been playing around with it, but I don't see any benefit.

If so, we do not need to replace kotlin.reflect with kotlinx.reflect.lite.

Have you done the benchmark?

seongahjo avatar Aug 08 '24 04:08 seongahjo

No, it didn't.

I went into the body link and found the kotlinx.metadata library. I wondered if this was intended to add hints at compile time.

I searched for the keyword kotlinx.reflect.lite and it seems to have a performance degrading meaning.

https://github.com/Kotlin/kotlinx.reflect.lite

Could it be related to that repository?

this-is-spear avatar Aug 08 '24 04:08 this-is-spear

Yes, I made a wrong reference.

It is a right reference below. https://github.com/Kotlin/kotlinx.reflect.lite

seongahjo avatar Aug 08 '24 05:08 seongahjo