-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve performance of XmlDependencies IsDependenciesFile #602
base: master
Are you sure you want to change the base?
Improve performance of XmlDependencies IsDependenciesFile #602
Commits on Feb 9, 2024
-
Add test for XmlDependencies.IsDependenciesFile
This commit records the current behaviour of the method before I make changes to try and optimize it.
Christopher Yarbrough committedFeb 9, 2024 Configuration menu - View commit details
-
Copy full SHA for 85fa4e7 - Browse repository at this point
Copy the full SHA 85fa4e7View commit details -
Improve XmlDependencies.IsDependenciesFile performance
This simpler string manipulation checks the same logic as before but much faster in the context of a large project. If the OnPostprocessAllAssets callback is invoked multiple times with thousands of files, as can happen with non-trivial Unity projects, the regex call becomes quite expensive. For profiling data see: googlesamples#601
Christopher Yarbrough committedFeb 9, 2024 Configuration menu - View commit details
-
Copy full SHA for 8b3b7fb - Browse repository at this point
Copy the full SHA 8b3b7fbView commit details -
Remove XmlDependencies.fileRegularExpressions
Internally, only Dependencies.xml files are matched, so we can use the more performant file-matching pattern here. The public API remains unchanged and only supports regex for now.
Christopher Yarbrough committedFeb 9, 2024 Configuration menu - View commit details
-
Copy full SHA for dcae0f9 - Browse repository at this point
Copy the full SHA dcae0f9View commit details -
Move AndroidResolver tests into unit_tests directory
Christopher Yarbrough committedFeb 9, 2024 Configuration menu - View commit details
-
Copy full SHA for 84074ef - Browse repository at this point
Copy the full SHA 84074efView commit details -
Add TODO item to build.gradle to fix Nunit tests for googlesamples#602
Christopher Yarbrough committedFeb 9, 2024 Configuration menu - View commit details
-
Copy full SHA for 717d53d - Browse repository at this point
Copy the full SHA 717d53dView commit details -
Remove FileMatchPattern delegate and replace with System.Func
This was only added because I initially thought it would read better, but it also obscures the in and out types. Since there's no functional difference, I removed it again just to reduce the amount of custom code.
Christopher Yarbrough committedFeb 9, 2024 Configuration menu - View commit details
-
Copy full SHA for 87f25bf - Browse repository at this point
Copy the full SHA 87f25bfView commit details -
Christopher Yarbrough committed
Feb 9, 2024 Configuration menu - View commit details
-
Copy full SHA for 22d1a09 - Browse repository at this point
Copy the full SHA 22d1a09View commit details -
Use NUnit 2.6.3 instead of 3.5.0 in AndroidResolverTests because the …
…earlier one already exists in the project
Christopher Yarbrough committedFeb 9, 2024 Configuration menu - View commit details
-
Copy full SHA for 167a3ce - Browse repository at this point
Copy the full SHA 167a3ceView commit details -
Rename AndroidResolverTests assembly to Google.AndroidResolverTests t…
…o align with others
Christopher Yarbrough committedFeb 9, 2024 Configuration menu - View commit details
-
Copy full SHA for 62b4583 - Browse repository at this point
Copy the full SHA 62b4583View commit details -
Add comment to IsDependenciesFile
Christopher Yarbrough committedFeb 9, 2024 Configuration menu - View commit details
-
Copy full SHA for 2bad7a8 - Browse repository at this point
Copy the full SHA 2bad7a8View commit details