We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In media_native.dart there is this code:
media_native.dart
Media( String resource, { Map<String, dynamic>? extras, Map<String, String>? httpHeaders, }) : uri = normalizeURI(resource), extras = extras ?? cache[normalizeURI(resource)]?.extras, httpHeaders = httpHeaders ?? cache[normalizeURI(resource)]?.httpHeaders { // Increment reference count. ref[uri] = ((ref[uri] ?? 0) + 1).clamp(0, 1 << 32); // Store [this] instance in [cache]. cache[uri] = _MediaCache( extras: this.extras, httpHeaders: this.httpHeaders, ); // Attach [this] instance to [Finalizer]. _finalizer.attach( this, _MediaFinalizerContext( uri, _memory, ), ); }
As you can see, normalizeURI is being called three times instead if calling it one and reuse its value.
normalizeURI
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In
media_native.dart
there is this code:As you can see,
normalizeURI
is being called three times instead if calling it one and reuse its value.The text was updated successfully, but these errors were encountered: