CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 06:01:33 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/dotnet/android.git
etag: W/"3a71da844cdebe825277495befd3caf6"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=XGVE1YmrX%2FnuXGgXIj78KoMMfDxZCSyah7GWo15cM%2BMXsn5XXaJFiFRW%2BRNdu4ODleo5R8UTIXq7zJbAKWGlDZQhfLLi2lupqISxCjQvolBBUgNoL2pW7LWAHVzlf4kkw5jjlze3AIpqK0ciquR%2F0i6f7Gx6W867V13NLr%2BnzIv3rDg%2FxjNQv9zjOXxFchbOs7xEi7HZ2cDGx%2F4f9wVMOzgJo041PWzs%2FSciyHDLKOy%2FEEtsBjjsDVrd9EIg4egcRBoJG5luEabDy8nw3wNS6g%3D%3D--f332OC1OgXtRLC5%2B--%2BHDybtdW1vzIiqhwxI1UwQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.401519405.1753596093; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 06:01:33 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 06:01:33 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: D064:3240E6:B32956:EEC55A:6885C0BC
[Xamarin.Android.Build.Tasks] ResolveLibraryProjectImports temp files… · dotnet/android@e2abfcd · GitHub
Copy file name to clipboardExpand all lines: src/Xamarin.Android.Build.Tasks/Tasks/ResolveLibraryProjectImports.cs
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 555
Commit e2abfcd
[Xamarin.Android.Build.Tasks] ResolveLibraryProjectImports temp files (#2540)
When reviewing the `<ResolveLibraryProjectImports/>` task, I noticed
a few things we could improve:
1. We are using `GetResourceData()` to get the entire contents of a
file as a `byte[]` and then writing to disk.
2. We are writing temporary zip files to disk, reading them to
extract, then deleting them.
The first thing I did was take advantage of the `GetResourceStream()`
method, so we could just do `stream.CopyTo(file)`. This prevents us
from allocating big `byte[]` the size of each file.
Next, I took advantage of `ZipArchive.Open(stream)` and
`GetResourceStream()` to avoid the need for creating temporary zip
files. We can unzip directly from the `Stream` in memory.
~~ Results ~~
When timing these changes, I used the Xamarin.Forms integration
project in this repo:
Before
1. 1793 ms ResolveLibraryProjectImports 1 calls
2. 1780 ms ResolveLibraryProjectImports 1 calls
3. 1770 ms ResolveLibraryProjectImports 1 calls
After
1. 1750 ms ResolveLibraryProjectImports 1 calls
2. 1740 ms ResolveLibraryProjectImports 1 calls
3. 1702 ms ResolveLibraryProjectImports 1 calls
I would say the improvements here are around 50ms.1 parent 04da7c8 commit e2abfcdCopy full SHA for e2abfcd
File tree
Expand file treeCollapse file tree
1 file changed
+8
-25
lines changedFilter options
- src/Xamarin.Android.Build.Tasks/Tasks
Expand file treeCollapse file tree
1 file changed
+8
-25
lines changedsrc/Xamarin.Android.Build.Tasks/Tasks/ResolveLibraryProjectImports.cs
Copy file name to clipboardExpand all lines: src/Xamarin.Android.Build.Tasks/Tasks/ResolveLibraryProjectImports.cs+8-25Lines changed: 8 additions & 25 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
266 | 266 |
| |
267 | 267 |
| |
268 | 268 |
| |
| 269 | + | |
269 | 270 |
| |
270 |
| - | |
271 |
| - | |
| 271 | + | |
272 | 272 |
| |
273 | 273 |
| |
274 | 274 |
| |
| |||
283 | 283 |
| |
284 | 284 |
| |
285 | 285 |
| |
286 |
| - | |
| 286 | + | |
287 | 287 |
| |
288 |
| - | |
| 288 | + | |
289 | 289 |
| |
290 | 290 |
| |
291 | 291 |
| |
292 | 292 |
| |
293 | 293 |
| |
294 | 294 |
| |
295 |
| - | |
296 |
| - | |
297 |
| - | |
298 |
| - | |
299 |
| - | |
300 |
| - | |
301 |
| - | |
302 | 295 |
| |
303 |
| - | |
| 296 | + | |
| 297 | + | |
304 | 298 |
| |
305 | 299 |
| |
306 | 300 |
| |
| |||
318 | 312 |
| |
319 | 313 |
| |
320 | 314 |
| |
321 |
| - | |
322 |
| - | |
323 | 315 |
| |
324 | 316 |
| |
325 | 317 |
| |
326 | 318 |
| |
327 | 319 |
| |
328 |
| - | |
329 |
| - | |
330 |
| - | |
331 |
| - | |
332 |
| - | |
333 |
| - | |
334 |
| - | |
335 |
| - | |
336 | 320 |
| |
337 | 321 |
| |
338 |
| - | |
| 322 | + | |
| 323 | + | |
339 | 324 |
| |
340 | 325 |
| |
341 | 326 |
| |
| |||
374 | 359 |
| |
375 | 360 |
| |
376 | 361 |
| |
377 |
| - | |
378 |
| - | |
379 | 362 |
| |
380 | 363 |
| |
381 | 364 |
| |
|
You can’t perform that action at this time.
0 commit comments