Skip to content

Tony/553 upload performance - #54

Open
tonypioneer wants to merge 1 commit into
devfrom
tony/553_upload_performance
Open

tonypioneer wants to merge 1 commit into
devfrom
tony/553_upload_performance

Conversation

@tonypioneer

Copy link
Copy Markdown
Collaborator

Pull Request Details

Description

The fixes introduce HTTP connection reuse, remove redundant GET requests, batch encryption-key updates (solidpod), cache DPoP key parsing (solid_auth), and add concurrent reads/writes in HealthPod.

Related Issues

anusii/healthpod#553

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How To Test?

Run the analysis.

Checklist

  • Screenshots included here/in linked issue #
  • Changes adhere to the style and coding guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • Any dependent changes have been merged and published in downstream modules
  • The update contains no confidential information
  • The update has no duplicated content
  • No lint check errors are related to these changes (make prep or flutter analyze lib)
  • Integration test dart test output or screenshot included in issue #
  • I tested the PR on these devices:
    • Android
    • iOS
    • Linux
    • MacOS
    • Windows
    • Web
  • I have identified reviewers
  • The PR has been approved by reviewers

Finalising

  • Merge dev into the this branch
  • Resolve any conflicts
  • Add a one line summary into the CHANGELOG.md
  • Push to the git repository and review
  • Merge the PR into dev

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Resolve the circular import between the DPoP key manager and token generator.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Improves DPoP signing performance by caching parsed RSA keys and invalidating them during key lifecycle changes.

Changes:

  • Caches parsed signing keys.
  • Clears cached keys on rotation and logout.
File summaries
File Summary
lib/src/dpop/dpop_token_generator.dart Adds signing-key caching.
lib/src/dpop/dpop_key_manager.dart Invalidates the cache; introduces a circular import requiring changes.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

import 'package:fast_rsa/fast_rsa.dart';
import 'package:logging/logging.dart';

import 'package:solid_auth/src/dpop/dpop_token_generator.dart';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ANALYSER: Investigate and fix slow upload and analysis performance in HealthPod Analyser

2 participants