Bug 34601 - [Android] Non-threshold classes method and property calls have slower performance compared to threshold classes and property calls
Summary: [Android] Non-threshold classes method and property calls have slower perform...
Status: RESOLVED DUPLICATE of bug 32126
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 5.1
Hardware: Macintosh Mac OS
: Highest normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2015-10-06 14:31 UTC by Kent Green [MSFT]
Modified: 2015-10-06 17:19 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Logs from my repo of the issue (13.31 KB, application/zip)
2015-10-06 14:31 UTC, Kent Green [MSFT]
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 32126

Description Kent Green [MSFT] 2015-10-06 14:31:43 UTC
Created attachment 13209 [details]
Logs from my repo of the issue

## Overview
From this enterprise desk case: 
https://kb.xamarin.com/agent/case/219633

Related to this bug report filed by the same customer:
"Xamarin.Android call performance is 4 times slower on inherited views" 
https://bugzilla.xamarin.com/show_bug.cgi?id=32126

## Customer Message describing the issue
"...this is an extension of the bug 32126, which states that the call performance is 4x slower for inherited views. The 4x slower stated in the bug was related to inherited view creation. When related to method calls, its 13x slower on a Nexus 5 (on Android 5.0)"



## Steps to reproduce the issue
I was able to reproduce the issue as follows:
1. Build & deploy the app
2. Tap the button
3. The performance values are shown by the app.

## Expected results
The values shown should be the same or generally close, and fast. (Since this is a performance question,  it's tricky to describe the "expected" behavior, but the differences are noticeable.)

## Actual results
In my tests with an LG Volt API 19, I noticed the "non-threshold" test was around 3-4x slower than the "threshold" test. 
The customer reports that their Nexus 5 (on Android 5.0) is around 13x slower. 

Since I still noticed a discrepancy, I think it's still reasonable to consider this "confirmed" but it seems possible some devices might be hitting this to a more extreme degree than in my tests.




## Build information
=== Xamarin Studio ===

Version 5.9.7 (build 9)
Installation UUID: 8ef63a7c-1b18-40de-a334-7f78777fcb55
Runtime:
	Mono 4.0.4 ((detached/d481017)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400040004

=== Apple Developer Tools ===

Xcode 7.0.1 (8228)
Build 7A1001

=== Xamarin.iOS ===

Version: 9.0.1.20 (Business Edition)
Hash: d8e9592
Branch: master
Build date: 2015-09-18 23:22:05-0400

=== Xamarin.Android ===

Version: 5.1.6.7 (Business Edition)
Android SDK: /Users/kentgreen/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
		5.1    (API level 22)
Java SDK: /usr
java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Version: 2.0.2.111 (Business Edition)

=== Build Information ===

Release ID: 509070009
Git revision: 31fa64709030b3edb971237780a452a4c69943c4
Build date: 2015-09-17 11:44:37-04
Xamarin addins: b105d33d8cd72911ff2cf3ee0b7715d37e5f19a6

=== Operating System ===

Mac OS X 10.10.5
Darwin Kents-Macbook-Pro.local 14.5.0 Darwin Kernel Version 14.5.0
    Wed Jul 29 02:26:53 PDT 2015
    root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64


## Additional notes
Adding sample as a private attachment, since it was provided by the customer. Adding IDE logs from my reproduction of the issue.
Comment 3 Jonathan Pryor 2015-10-06 17:19:10 UTC

*** This bug has been marked as a duplicate of bug 32126 ***