Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Feature/performance 2 #24

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Feature/performance 2 #24

wants to merge 7 commits into from

Conversation

passsy
Copy link
Owner

@passsy passsy commented Jul 27, 2016

Part II of #23

Use reflection to check for overridden methods. Don't call plugins which did not override a method.

Since reflection is very heavy it will be only used after a fixed amount of calls.

Performance measurements will follow

Increases the performance of getApplicationInfo() and getResources() drastically when not overridden which get called multiple thousand times per Activity Lifecycle.

passsy added 7 commits July 22, 2016 20:03
…ods (example getResources())

check if plugin is overridding the method before calling the plugin
# Conflicts:
#	activity/src/main/java/com/pascalwelsch/compositeandroid/activity/ActivityDelegate.java
#	build.gradle
#	fragment/src/main/java/com/pascalwelsch/compositeandroid/fragment/FragmentDelegate.java
@passsy passsy mentioned this pull request Nov 2, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant