[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-dev] ajc$interField methods
|
- From: "Eric Bodden" <eric.bodden@xxxxxxxxxxxxxx>
- Date: Mon, 15 Sep 2008 16:18:21 -0400
- Delivered-to: aspectj-dev@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=48FhRdsQwWScY8WQHtZ5BOHes4V9uHHsdn9YZ6OQ48Q=; b=qsbrm2QuBAEELwcLW8nw7QF+O6u4SuPbX5x4rVGqZwQ+RY8yAdTGfJrgZYJo+g4euU C+omj8YqYKDtVVYZKunFZnU0qTprv63Lkd+UXum0nTxN6jUysaAAqJd8FsQ/SdgobC/V ChDu5kV/GYEx6rQRX+oYcgFn3dWpzptXIRtpw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=WIVrK3lW9BAqlCKHocypGZU2QHe05kMBGmslQvkPqAbirqVRZ9zt1n8EmmbsrbXH4o PbvQy6VXwkAeEntSkfqBPkSncjsC5I8uq1CmsKY6KZAU6qAB7uebKWqt7hfVgC8RxxHe tMDXAtAzrFT9FCZS9GWjjUiq08L4Efb/hSqNI=
Thanks, Andy!
2008/9/15 Andy Clement <andrew.clement@xxxxxxxxx>:
> The getters are created on the interface so that the interface type can be
> used throughout (rather than the actual implementing type) and then
> generated implementations in each interface implementation access the actual
> field. I remember writing it up in an old bug, you might want to search
> fixed bugs for interFieldGet ...
>
> Andy.
>
> 2008/9/15 Eric Bodden <eric.bodden@xxxxxxxxxxxxxx>
>>
>> Yes I am.
>>
>> Eric
>>
>> 2008/9/15 Andy Clement <andrew.clement@xxxxxxxxx>:
>> > Are you ITDing onto an interface by any chance?
>> >
>> > 2008/9/15 Eric Bodden <eric.bodden@xxxxxxxxxxxxxx>
>> >>
>> >> Hi.
>> >>
>> >> Can somebody tell me why ajc generates ajc$interField* methods for
>> >> ITDs, even if those are public? can ajc not access the field directly?
>> >> I am currently doing some profiling and my profile looks like...
>> >>
>> >> 1 8.75% 8.75% 99 300279
>> >> raytracer.Vec.ajc$interFieldGet$ca_mcgill_...
>> >> 2 7.86% 16.61% 89 300327
>> >> raytracer.Vec.ajc$interFieldGet$ca_mcgill_...
>> >> 3 2.83% 19.43% 32 300329
>> >> raytracer.Vec.ajc$interFieldGet$ca_mcgill_...
>> >> 4 2.65% 22.08% 30 300164
>> >> java.util.concurrent.ConcurrentHashMap.put
>> >> 5 2.56% 24.65% 29 300325
>> >> raytracer.Vec.ajc$interFieldGet$ca_mcgill_...
>> >> 6 2.39% 27.03% 27 300333
>> >> raytracer.Vec.ajc$interFieldGet$ca_mcgill_...
>> >> 7 1.86% 28.89% 21 300156
>> >> raytracer.Vec.ajc$interFieldGet$ca_mcgill_...
>> >> 8 1.86% 30.74% 21 300332
>> >> raytracer.Vec.ajc$interFieldGet$ca_mcgill_...
>> >> 9 1.77% 32.51% 20 300219
>> >> java.util.concurrent.ConcurrentHashMap.get
>> >> 10 1.77% 34.28% 20 300328
>> >> raytracer.Vec.ajc$interFieldGet$ca_mcgill_...
>> >>
>> >> Therefore I think that I could safe quite some time through direct
>> >> field
>> >> access.
>> >>
>> >> Cheers,
>> >> Eric
>> >>
>> >> --
>> >> Eric Bodden
>> >> Sable Research Group
>> >> McGill University, Montréal, Canada
>> >> _______________________________________________
>> >> aspectj-dev mailing list
>> >> aspectj-dev@xxxxxxxxxxx
>> >> https://dev.eclipse.org/mailman/listinfo/aspectj-dev
>> >
>> >
>> > _______________________________________________
>> > aspectj-dev mailing list
>> > aspectj-dev@xxxxxxxxxxx
>> > https://dev.eclipse.org/mailman/listinfo/aspectj-dev
>> >
>> >
>>
>>
>>
>> --
>> Eric Bodden
>> Sable Research Group
>> McGill University, Montréal, Canada
>> _______________________________________________
>> aspectj-dev mailing list
>> aspectj-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/aspectj-dev
>
>
> _______________________________________________
> aspectj-dev mailing list
> aspectj-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-dev
>
>
--
Eric Bodden
Sable Research Group
McGill University, Montréal, Canada