Oleksiy Pylypenko

Results 83 comments of Oleksiy Pylypenko

@raphw can you sugest why ByteBuddy can be slow at startup?

Thanks! 9 марта 2018 г. 2:31 PM пользователь "Rafael Winterhalter" < [email protected]> написал: > Just some general feedback: advice instances are immutable and very > expensive. Dont create them for...

@angryziber what is JDK used for measurements?

I think there is a lot of things to consider regarding how to do benchmark itself. Can you share some code snippet to make my life easier? Mockk creates subclasses...

Following code: ``` fun main(args: Array) { var t = System.currentTimeMillis() ByteBuddyAgent.install() ByteBuddy().subclass(Date::class.java).make().load(Thread.currentThread().contextClassLoader) println(System.currentTimeMillis() - t) t = System.currentTimeMillis() for (i in 1..100000) mockk() println(System.currentTimeMillis() - t) t = System.currentTimeMillis()...

@raphw my only point is that subclassing not always needed and can be skipped depending if a class has abstract methods or not.

Thanks for comparation. Mockk will lost most of features without inlining

@raphw btw this initialization time depends on some conditions, right? Alike is it JVM, JDK. Which VM version is used. Which OS is used. Wont it be nice to have...

I wonder how that can be done technically. Does KN support any kind of instrumentation? We need at least somehow inject a check of boolean in each method that defines...