2021-02-25 02:50:31 +03:00
|
|
|
## Ignore Visual Studio temporary files, build results, and
|
|
|
|
## files generated by popular Visual Studio add-ons.
|
|
|
|
##
|
|
|
|
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
|
|
|
|
|
2023-02-07 16:09:25 +03:00
|
|
|
.nuspec/
|
|
|
|
.buildtasks/
|
2021-08-26 01:51:03 +03:00
|
|
|
templatesTest/
|
2021-02-25 02:50:31 +03:00
|
|
|
|
|
|
|
# User-specific files
|
|
|
|
*.rsuser
|
2016-03-22 23:02:25 +03:00
|
|
|
*.suo
|
|
|
|
*.user
|
2021-02-25 02:50:31 +03:00
|
|
|
*.userosscache
|
|
|
|
*.sln.docstates
|
|
|
|
|
|
|
|
# User-specific files (MonoDevelop/Xamarin Studio)
|
|
|
|
*.userprefs
|
|
|
|
|
|
|
|
# Mono auto generated files
|
|
|
|
mono_crash.*
|
|
|
|
|
|
|
|
# Build results
|
|
|
|
[Dd]ebug/
|
|
|
|
[Dd]ebugPublic/
|
|
|
|
[Rr]elease/
|
|
|
|
[Rr]eleases/
|
|
|
|
x64/
|
|
|
|
x86/
|
|
|
|
[Ww][Ii][Nn]32/
|
|
|
|
[Aa][Rr][Mm]/
|
|
|
|
[Aa][Rr][Mm]64/
|
|
|
|
bld/
|
|
|
|
[Bb]in/
|
|
|
|
[Oo]bj/
|
|
|
|
[Ll]og/
|
|
|
|
[Ll]ogs/
|
|
|
|
|
|
|
|
# Visual Studio 2015/2017 cache/options directory
|
|
|
|
.vs/
|
|
|
|
# Uncomment if you have tasks that create the project's static files in wwwroot
|
|
|
|
#wwwroot/
|
|
|
|
|
|
|
|
# Visual Studio 2017 auto generated files
|
|
|
|
Generated\ Files/
|
|
|
|
|
|
|
|
# MSTest test Results
|
|
|
|
[Tt]est[Rr]esult*/
|
|
|
|
[Bb]uild[Ll]og.*
|
|
|
|
|
|
|
|
# NUnit
|
|
|
|
*.VisualState.xml
|
|
|
|
TestResult.xml
|
|
|
|
nunit-*.xml
|
|
|
|
|
|
|
|
# Build Results of an ATL Project
|
|
|
|
[Dd]ebugPS/
|
|
|
|
[Rr]eleasePS/
|
|
|
|
dlldata.c
|
|
|
|
|
|
|
|
# Benchmark Results
|
|
|
|
BenchmarkDotNet.Artifacts/
|
|
|
|
|
|
|
|
# .NET Core
|
|
|
|
project.lock.json
|
|
|
|
project.fragment.lock.json
|
|
|
|
artifacts/
|
|
|
|
|
|
|
|
# ASP.NET Scaffolding
|
|
|
|
ScaffoldingReadMe.txt
|
|
|
|
|
|
|
|
# StyleCop
|
|
|
|
StyleCopReport.xml
|
|
|
|
|
|
|
|
# Files built by Visual Studio
|
|
|
|
*_i.c
|
|
|
|
*_p.c
|
|
|
|
*_h.h
|
|
|
|
*.ilk
|
|
|
|
*.meta
|
|
|
|
*.obj
|
|
|
|
*.iobj
|
|
|
|
*.pch
|
|
|
|
*.pdb
|
|
|
|
*.ipdb
|
|
|
|
*.pgc
|
|
|
|
*.pgd
|
|
|
|
*.rsp
|
|
|
|
*.sbr
|
|
|
|
*.tlb
|
|
|
|
*.tli
|
|
|
|
*.tlh
|
|
|
|
*.tmp
|
|
|
|
*.tmp_proj
|
|
|
|
*_wpftmp.csproj
|
|
|
|
*.log
|
|
|
|
*.vspscc
|
|
|
|
*.vssscc
|
|
|
|
.builds
|
|
|
|
*.pidb
|
|
|
|
*.svclog
|
|
|
|
*.scc
|
|
|
|
|
|
|
|
# Chutzpah Test files
|
|
|
|
_Chutzpah*
|
|
|
|
|
|
|
|
# Visual C++ cache files
|
|
|
|
ipch/
|
|
|
|
*.aps
|
|
|
|
*.ncb
|
|
|
|
*.opendb
|
|
|
|
*.opensdf
|
|
|
|
*.sdf
|
|
|
|
*.cachefile
|
|
|
|
*.VC.db
|
|
|
|
*.VC.VC.opendb
|
|
|
|
|
|
|
|
# Visual Studio profiler
|
2016-03-22 23:02:25 +03:00
|
|
|
*.psess
|
2021-02-25 02:50:31 +03:00
|
|
|
*.vsp
|
|
|
|
*.vspx
|
|
|
|
*.sap
|
|
|
|
|
|
|
|
# Visual Studio Trace Files
|
|
|
|
*.e2e
|
|
|
|
|
|
|
|
# TFS 2012 Local Workspace
|
|
|
|
$tf/
|
|
|
|
|
|
|
|
# Guidance Automation Toolkit
|
|
|
|
*.gpState
|
|
|
|
|
|
|
|
# ReSharper is a .NET coding add-in
|
|
|
|
_ReSharper*/
|
|
|
|
*.[Rr]e[Ss]harper
|
|
|
|
*.DotSettings.user
|
|
|
|
|
|
|
|
# TeamCity is a build add-in
|
|
|
|
_TeamCity*
|
|
|
|
|
|
|
|
# DotCover is a Code Coverage Tool
|
|
|
|
*.dotCover
|
|
|
|
|
|
|
|
# AxoCover is a Code Coverage Tool
|
|
|
|
.axoCover/*
|
|
|
|
!.axoCover/settings.json
|
|
|
|
|
|
|
|
# Coverlet is a free, cross platform Code Coverage Tool
|
|
|
|
coverage*.json
|
|
|
|
coverage*.xml
|
|
|
|
coverage*.info
|
|
|
|
|
|
|
|
# Visual Studio code coverage results
|
|
|
|
*.coverage
|
|
|
|
*.coveragexml
|
|
|
|
|
|
|
|
# NCrunch
|
|
|
|
_NCrunch_*
|
|
|
|
.*crunch*.local.xml
|
|
|
|
nCrunchTemp_*
|
|
|
|
|
|
|
|
# MightyMoose
|
|
|
|
*.mm.*
|
|
|
|
AutoTest.Net/
|
|
|
|
|
|
|
|
# Web workbench (sass)
|
|
|
|
.sass-cache/
|
|
|
|
|
|
|
|
# Installshield output folder
|
|
|
|
[Ee]xpress/
|
|
|
|
|
|
|
|
# DocProject is a documentation generator add-in
|
|
|
|
DocProject/buildhelp/
|
|
|
|
DocProject/Help/*.HxT
|
|
|
|
DocProject/Help/*.HxC
|
|
|
|
DocProject/Help/*.hhc
|
|
|
|
DocProject/Help/*.hhk
|
|
|
|
DocProject/Help/*.hhp
|
|
|
|
DocProject/Help/Html2
|
|
|
|
DocProject/Help/html
|
|
|
|
|
|
|
|
# Click-Once directory
|
|
|
|
publish/
|
|
|
|
|
|
|
|
# Publish Web Output
|
|
|
|
*.[Pp]ublish.xml
|
|
|
|
*.azurePubxml
|
|
|
|
# Note: Comment the next line if you want to checkin your web deploy settings,
|
|
|
|
# but database connection strings (with potential passwords) will be unencrypted
|
|
|
|
*.pubxml
|
|
|
|
*.publishproj
|
|
|
|
|
|
|
|
# Microsoft Azure Web App publish settings. Comment the next line if you want to
|
|
|
|
# checkin your Azure Web App publish settings, but sensitive information contained
|
|
|
|
# in these scripts will be unencrypted
|
|
|
|
PublishScripts/
|
|
|
|
|
|
|
|
# NuGet Packages
|
2018-12-05 01:27:07 +03:00
|
|
|
*.nupkg
|
2021-02-25 02:50:31 +03:00
|
|
|
# NuGet Symbol Packages
|
|
|
|
*.snupkg
|
|
|
|
# The packages folder can be ignored because of Package Restore
|
|
|
|
**/[Pp]ackages/*
|
|
|
|
# except build/, which is used as an MSBuild target.
|
|
|
|
!**/[Pp]ackages/build/
|
|
|
|
# Uncomment if necessary however generally it will be regenerated when needed
|
|
|
|
#!**/[Pp]ackages/repositories.config
|
|
|
|
# NuGet v3's project.json files produces more ignorable files
|
|
|
|
*.nuget.props
|
|
|
|
*.nuget.targets
|
|
|
|
|
|
|
|
# Microsoft Azure Build Output
|
|
|
|
csx/
|
|
|
|
*.build.csdef
|
|
|
|
|
|
|
|
# Microsoft Azure Emulator
|
|
|
|
ecf/
|
|
|
|
rcf/
|
|
|
|
|
|
|
|
# Windows Store app package directories and files
|
|
|
|
AppPackages/
|
|
|
|
BundleArtifacts/
|
|
|
|
Package.StoreAssociation.xml
|
|
|
|
_pkginfo.txt
|
|
|
|
*.appx
|
|
|
|
*.appxbundle
|
|
|
|
*.appxupload
|
|
|
|
|
|
|
|
# Visual Studio cache files
|
|
|
|
# files ending in .cache can be ignored
|
|
|
|
*.[Cc]ache
|
|
|
|
# but keep track of directories ending in .cache
|
|
|
|
!?*.[Cc]ache/
|
|
|
|
|
|
|
|
# Others
|
|
|
|
ClientBin/
|
|
|
|
~$*
|
|
|
|
*~
|
|
|
|
*.dbmdl
|
|
|
|
*.dbproj.schemaview
|
|
|
|
*.jfm
|
|
|
|
*.pfx
|
|
|
|
*.publishsettings
|
|
|
|
orleans.codegen.cs
|
|
|
|
|
|
|
|
# Including strong name files can present a security risk
|
|
|
|
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
|
|
|
|
#*.snk
|
|
|
|
|
|
|
|
# Since there are multiple workflows, uncomment next line to ignore bower_components
|
|
|
|
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
|
|
|
|
#bower_components/
|
|
|
|
|
|
|
|
# RIA/Silverlight projects
|
|
|
|
Generated_Code/
|
|
|
|
|
|
|
|
# Backup & report files from converting an old project file
|
|
|
|
# to a newer Visual Studio version. Backup files are not needed,
|
|
|
|
# because we have git ;-)
|
|
|
|
_UpgradeReport_Files/
|
|
|
|
Backup*/
|
|
|
|
UpgradeLog*.XML
|
|
|
|
UpgradeLog*.htm
|
|
|
|
ServiceFabricBackup/
|
|
|
|
*.rptproj.bak
|
|
|
|
|
|
|
|
# SQL Server files
|
|
|
|
*.mdf
|
|
|
|
*.ldf
|
|
|
|
*.ndf
|
|
|
|
|
|
|
|
# Business Intelligence projects
|
|
|
|
*.rdl.data
|
|
|
|
*.bim.layout
|
|
|
|
*.bim_*.settings
|
|
|
|
*.rptproj.rsuser
|
|
|
|
*- [Bb]ackup.rdl
|
|
|
|
*- [Bb]ackup ([0-9]).rdl
|
|
|
|
*- [Bb]ackup ([0-9][0-9]).rdl
|
|
|
|
|
|
|
|
# Microsoft Fakes
|
|
|
|
FakesAssemblies/
|
|
|
|
|
|
|
|
# GhostDoc plugin setting file
|
|
|
|
*.GhostDoc.xml
|
|
|
|
|
|
|
|
# Node.js Tools for Visual Studio
|
|
|
|
.ntvs_analysis.dat
|
|
|
|
node_modules/
|
|
|
|
|
|
|
|
# Visual Studio 6 build log
|
|
|
|
*.plg
|
|
|
|
|
|
|
|
# Visual Studio 6 workspace options file
|
|
|
|
*.opt
|
|
|
|
|
|
|
|
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
|
|
|
|
*.vbw
|
|
|
|
|
|
|
|
# Visual Studio LightSwitch build output
|
|
|
|
**/*.HTMLClient/GeneratedArtifacts
|
|
|
|
**/*.DesktopClient/GeneratedArtifacts
|
|
|
|
**/*.DesktopClient/ModelManifest.xml
|
|
|
|
**/*.Server/GeneratedArtifacts
|
|
|
|
**/*.Server/ModelManifest.xml
|
|
|
|
_Pvt_Extensions
|
|
|
|
|
|
|
|
# Paket dependency manager
|
|
|
|
.paket/paket.exe
|
|
|
|
paket-files/
|
|
|
|
|
|
|
|
# FAKE - F# Make
|
|
|
|
.fake/
|
|
|
|
|
|
|
|
# CodeRush personal settings
|
|
|
|
.cr/personal
|
|
|
|
|
|
|
|
# Python Tools for Visual Studio (PTVS)
|
|
|
|
__pycache__/
|
|
|
|
*.pyc
|
|
|
|
|
|
|
|
# Cake - Uncomment if you are using it
|
2021-03-01 23:42:59 +03:00
|
|
|
tools/**
|
|
|
|
!tools/packages.config
|
2021-02-25 02:50:31 +03:00
|
|
|
|
|
|
|
# Tabs Studio
|
|
|
|
*.tss
|
|
|
|
|
|
|
|
# Telerik's JustMock configuration file
|
|
|
|
*.jmconfig
|
|
|
|
|
|
|
|
# BizTalk build output
|
|
|
|
*.btp.cs
|
|
|
|
*.btm.cs
|
|
|
|
*.odx.cs
|
|
|
|
*.xsd.cs
|
|
|
|
|
|
|
|
# OpenCover UI analysis results
|
|
|
|
OpenCover/
|
|
|
|
|
|
|
|
# Azure Stream Analytics local run output
|
|
|
|
ASALocalRun/
|
|
|
|
|
|
|
|
# MSBuild Binary and Structured Log
|
2019-05-22 03:06:59 +03:00
|
|
|
*.binlog
|
2021-02-25 02:50:31 +03:00
|
|
|
|
|
|
|
# NVidia Nsight GPU debugger configuration file
|
|
|
|
*.nvuser
|
|
|
|
|
|
|
|
# MFractors (Xamarin productivity tool) working folder
|
|
|
|
.mfractor/
|
|
|
|
|
|
|
|
# Local History for Visual Studio
|
|
|
|
.localhistory/
|
|
|
|
|
|
|
|
# BeatPulse healthcheck temp database
|
|
|
|
healthchecksdb
|
|
|
|
|
|
|
|
# Backup folder for Package Reference Convert tool in Visual Studio 2017
|
|
|
|
MigrationBackup/
|
|
|
|
|
|
|
|
# Ionide (cross platform F# VS Code tools) working folder
|
|
|
|
.ionide/
|
|
|
|
|
|
|
|
# Fody - auto-generated XML schema
|
|
|
|
FodyWeavers.xsd
|
2021-03-16 00:29:51 +03:00
|
|
|
.DS_Store
|
[android] reduce JNI calls by moving logic into Java (#3372)
Xamarin.Forms had `FormsViewGroup.java`, which is still used for .NET
MAUI's renderer compatiblity.
The idea, is you could call a single method that sets many values.
This would cross from C# into Java once, instead of several times:
public void sendBatchUpdate (
float pivotX,
float pivotY,
int visibility,
boolean enabled,
float opacity,
float rotation,
float rotationX,
float rotationY,
float scaleX,
float scaleY,
float translationX,
float translationY){
setPivotX (pivotX);
setPivotY (pivotY);
if (getVisibility () != visibility)
setVisibility (visibility);
if (isEnabled () != enabled)
setEnabled (enabled);
setAlpha (opacity);
setRotation (rotation);
setRotationX (rotationX);
setRotationY (rotationY);
setScaleX (scaleX);
setScaleY (scaleY);
setTranslationX (translationX);
setTranslationY (translationY);
}
One of the drawbacks here was having to subclass `FormsViewGroup`, as
this could have easily been a `static` method for flexibility.
I wrote a benchmark for this idea, and still appears to help
dramatically in .NET 6:
https://github.com/jonathanpeppers/android-pipe
To keep this idea going, let's create `maui.aar` and `ViewHelper.java`:
* `set()` sets many values at once.
* `requestLayoutIfNeeded()` checks `isInLayout()` and calls
`requestLayout()`.
* `removeFromParent()` does various checks and calls `removeView()`.
* `setPivotXIfNeeded()` (or Y) compares the existing value before setting it.
~~ Results ~~
Running the `Benchmarks.Droid.csproj` on a Pixel 5:
> ./bin/dotnet/dotnet build src/Core/tests/Benchmarks.Droid/Benchmarks.Droid.csproj -t:Benchmark -c Release
| Method | Mean | Error | StdDev | Gen 0 | Allocated |
|-------------------- |-----------:|---------:|---------:|-------:|----------:|
| --Border | 323.2 µs | 0.82 µs | 0.68 µs | 0.9766 | 5 KB |
| ++Border | 242.3 µs | 1.34 µs | 1.25 µs | 0.9766 | 5 KB |
| --ContentView | 354.6 µs | 2.61 µs | 2.31 µs | 1.4648 | 6 KB |
| ++ContentView | 258.3 µs | 0.49 µs | 0.43 µs | 1.4648 | 6 KB |
| --ActivityIndicator | 486.1 µs | 1.41 µs | 1.18 µs | 0.9766 | 5 KB |
| ++ActivityIndicator | 380.3 µs | 1.40 µs | 1.31 µs | 0.9766 | 5 KB |
| --Label | 630.8 µs | 3.02 µs | 2.83 µs | 0.9766 | 5 KB |
| ++Label | 648.8 µs | 6.14 µs | 5.74 µs | 0.9766 | 5 KB |
| --Entry | 2,169.2 µs | 18.02 µs | 16.85 µs | - | 12 KB |
| ++Entry | 1,998.2 µs | 17.01 µs | 15.07 µs | - | 12 KB |
-- is *before*, with `git checkout head~1 src\Core\src` on this branch.
++ is using the code changes on this branch as-is.
Attaching each of these handlers to native controls is about 30%
improved.
Running the `Maui.Controls.Sample.SingleProject` app:
.\bin\dotnet\dotnet build .\src\Controls\samples\Controls.Sample.SingleProject\Maui.Controls.Sample.SingleProject.csproj -c Release -t:Install -f net6.0-android
The average of 10 runs on a Pixel 5:
Before:
Displayed +1s821ms
Displayed +1s770ms
Displayed +1s840ms
Displayed +1s766ms
Displayed +1s795ms
Displayed +1s775ms
Displayed +1s763ms
Displayed +1s764ms
Displayed +1s767ms
Displayed +1s762ms
Average(ms): 1782.3
Std Err(ms): 8.7
Std Dev(ms): 27.5118156434649
After:
Displayed +1s768ms
Displayed +1s770ms
Displayed +1s764ms
Displayed +1s747ms
Displayed +1s757ms
Displayed +1s778ms
Displayed +1s751ms
Displayed +1s784ms
Displayed +1s770ms
Displayed +1s769ms
Average(ms): 1765.8
Std Err(ms): 3.62644607172244
Std Dev(ms): 11.4678293984132
I think this improves startup by ~17ms for this app. Apps with more
views + handlers on startup will have a larger improvement.
Co-authored-by: E.Z. Hart <hartez@gmail.com>
2021-12-14 19:28:36 +03:00
|
|
|
|
|
|
|
# Android Studio
|
|
|
|
.gradle/
|
|
|
|
.idea/
|
|
|
|
local.properties
|
2022-08-09 22:56:19 +03:00
|
|
|
|
|
|
|
# Directory Build overrides for local setups
|
2023-08-03 17:16:41 +03:00
|
|
|
Directory.Build.Override.props
|
|
|
|
|
|
|
|
# Only the "snapshots" directory should be added to Git, not the "snapshots-diff" directory
|
|
|
|
snapshots-diff/
|
2024-10-15 14:51:43 +03:00
|
|
|
|
|
|
|
#install of dotnet version
|
2024-10-01 02:23:36 +03:00
|
|
|
/.dotnet
|
2024-10-15 14:51:43 +03:00
|
|
|
.dotnet
|
|
|
|
temp
|
|
|
|
.packages
|