servo/components/net
Narfinger ca47cc2fa3
Add a basic caching mechanism for ImageKeys. (#37369)
This creates a new method in shared/compositing/lib to generate image
keys that are send over the webview. This does not immediately return
the keys but goes over the constellation to receive the keys from the
IOCompositor. To make this more efficient, we now cache the keys in
image_cache in a simple FIFO order. The old blocking method stays intact
for now but got renamed to make the blocking clear.
The blocking calls that are left are in:
- `components/canvas/canvas_data.rs`
- `components/script/dom/htmlmediaelement.rs`

Testing: WPT tests should cover this as this doesn't change any
functionality.
Fixes: Was mentioned in
https://github.com/servo/servo/issues/37161#issuecomment-2915750051 and
part of https://github.com/servo/servo/issues/37086

---------

Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com>
Co-authored-by: gterzian <2792687+gterzian@users.noreply.github.com>
2025-07-03 13:16:43 +00:00
..
fetch net: Perform CSP checks on fetch responses. (#37154) 2025-06-01 17:25:13 +00:00
indexeddb [IndexedDB] Reduce heed related panics (#37652) 2025-06-25 00:22:19 +00:00
protocols Initial support for marking custom protocol secure (#36656) 2025-04-25 10:39:33 +00:00
tests tests: Use Ahem font provided by WPT harness. (#37054) 2025-06-09 08:13:05 +00:00
async_runtime.rs Remove lock around tokio-rt handle (#36762) 2025-04-30 07:09:38 +00:00
Cargo.toml Initial IndexedDB Support (#33044) 2025-06-19 05:19:07 +00:00
connector.rs Remove lock around tokio-rt handle (#36762) 2025-04-30 07:09:38 +00:00
cookie.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
cookie_storage.rs Webdriver delete cookie (#36306) 2025-04-04 05:24:47 +00:00
decoder.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
filemanager_thread.rs servoshell: Migrate to egui-file-dialog from tinyfiledialogs (#34823) 2025-02-04 18:24:24 +00:00
hosts.rs Replace the lazy_static crate with std::sync::LazyLock in components/net (#33046) 2024-08-14 12:15:55 +00:00
hsts.rs Replace hsts preload list hashmap with an FST (#37015) 2025-05-20 04:26:55 +00:00
http_cache.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
http_loader.rs Fix Sec-Fetch-Site header (#37277) 2025-06-07 16:57:29 +00:00
image_cache.rs Add a basic caching mechanism for ImageKeys. (#37369) 2025-07-03 13:16:43 +00:00
lib.rs Initial IndexedDB Support (#33044) 2025-06-19 05:19:07 +00:00
local_directory_listing.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
request_interceptor.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
resource_thread.rs Fix write_json_to_file perf regressions (#37687) 2025-06-25 08:45:20 +00:00
storage_thread.rs net: Measure memory usage of storage thread. (#37053) 2025-05-20 14:50:02 +00:00
subresource_integrity.rs clippy: Fix warnings in components/net (#31626) 2024-03-13 09:40:04 +00:00
websocket_loader.rs Upgrade tungstenite, webpki-roots, and hyper-rustls dependencies. (#37333) 2025-06-08 22:55:44 +00:00