naver / fixture-monkey

Let Fixture Monkey generate test instances including edge cases automatically
https://naver.github.io/fixture-monkey
Apache License 2.0
572 stars 89 forks source link

Enhance Kotlin Reflection #768

Open seongahjo opened 1 year ago

seongahjo commented 1 year ago

Describe the feature you request

Enhance Kotlin Reflection.

(Optional): Suggest A Solution

Replace kotlin.reflect with kotlinx.reflect.lite

this-is-spear commented 3 months ago

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.

seongahjo commented 3 months ago

@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?

this-is-spear commented 3 months ago

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?

seongahjo commented 3 months ago

Yes, I made a wrong reference.

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