The PR#1135[1] implements the PIC for Groovy indy. As the book
"Efficient Polymorphic Calls" said[2], "If a send is megamorphic(invokes
many different methods), it cannot be handled efficiently by PICs.
Fortunately, such sends are the exception rather than the rule.", so I will
not spend more time to improve the performance for the "exception"...

Cheers,
Daniel.Sun
[1] https://github.com/apache/groovy/pull/1135
[2]
https://books.google.com.ph/books?id=TRTI80RGWjoC&pg=PA20&lpg=PA20&dq=CLR+monomorphic+inline+cache&source=bl&ots=qAoVAiPOvf&sig=ACfU3U2-kxZVXm7lw8ircNKeAxIwmmdcYw&hl=zh-CN&sa=X&ved=2ahUKEwj21d_HlPjmAhUc8XMBHV4KBhYQ6AEwAnoECAoQAQ#v=onepage&q&f=false



-----
Apache Groovy committer & PMC member 
Blog: http://blog.sunlan.me 
Twitter: @daniel_sun 

--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Reply via email to