dotnet / dotnet/macios

Gesture recognizers unnecessarily produce registrar methods calling into generic class

Open
#18,597 0 comments 0 reactions 0 assignees View on GitHub
enhancement performance
Dominant language
C#
Stars
2.9k
Forks
576
Avg merge
2d 17h
Merged PRs (30d)
108

Description

Static registrar calls are extremely inefficient when the target is a generic class. This happens to produce that code in the binding themselves:

https://github.com/xamarin/xamarin-macios/blob/403d01749f5920690ef87603b7bb0cb94ce3e868/src/UIKit/UIGestureRecognizer.cs#L79-L92

It can likely be avoided by introducing non-generic parent. It's also a non-issue with the new managed static registrar.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.