RFR: 8042778: Getting all visible methods in ReferenceTypeImpl is slow
Jeremy Manson
jeremymanson at google.com
Fri Jul 11 21:28:39 UTC 2014
Hi Jaroslav,
I haven't written many Streams yet, so perhaps I'm missing something
obvious / well-known. Streams can replace the original code in an obvious
way (filter the elements of list based on whether they are contained in
map.values()), but I'm not sure how the filter operation becomes O(1)
unless we build the HashSet?
Jeremy
On Fri, Jul 11, 2014 at 3:11 AM, Jaroslav Bachorik <
jaroslav.bachorik at oracle.com> wrote:
> Hi Jeremy,
>
>
> On 05/08/2014 08:56 PM, Jeremy Manson wrote:
>
>> I'm testing out my newly acquired OpenJDK authorship with something
>> simple. If I did this wrong, I apologize.
>>
>> Basically, the debugger becomes very slow if there are a lot of methods
>> in a class. This can happen (O(thousands)) if you are using a code
>> generation tool.
>>
>> http://cr.openjdk.java.net/~jmanson/8042778/webrev.00/
>>
>
> Have you considered using streams to avoid creation of an additional
> HashSet?
>
> -JB-
>
>
>
>> Reviews from reviewers and committing from committers would be
>> appreciated. Thanks!
>>
>> Jeremy
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20140711/c3df4fa3/attachment.html>
More information about the serviceability-dev
mailing list