Skip to content
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 MediaType::from_content_type to not do any allocations #2

Open
dsherret opened this issue Feb 9, 2023 · 1 comment

Comments

@dsherret
Copy link
Member

dsherret commented Feb 9, 2023

We should remove the allocations that it does while maintaining the functionality (case insensitive comparison)

@dsherret dsherret transferred this issue from denoland/deno_ast Aug 16, 2023
@dsherret
Copy link
Member Author

dsherret commented Apr 1, 2024

Removed a vector allocation for this in #7. Not sure how to remove the .to_lowercase() in a way that will be maintainable and actually faster.

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

No branches or pull requests

1 participant