mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
Rework image_cache_task to avoid using `url` as key during the loadin… …g of an image. A `url` can be very large, in particular if it is a data: url, so using it as a key for lookups whenever we load a few bytes is not a very good idea. This patch introduces an intermediate `LoadKey` (internally, an u64) that makes hashmap lookups faster. Somewhere along the way, we also get rid of a few calls to `url.clone()`. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7894) <!-- Reviewable:end --> |
||
---|---|---|
.. | ||
fetch | ||
about_loader.rs | ||
Cargo.toml | ||
cookie.rs | ||
cookie_storage.rs | ||
data_loader.rs | ||
file_loader.rs | ||
hsts.rs | ||
http_loader.rs | ||
image_cache_task.rs | ||
lib.rs | ||
mime_classifier.rs | ||
pub_domains.rs | ||
resource_task.rs | ||
storage_task.rs |