Files
browser/src
Karl Seguin 3fe28d5441 Optimize memory usage
The two bigger changes here are:

1- The http_client has been moved from the Session to the Browser, allowing
   its connection pool to be re-used across multiple sessions

2- The browser now has a page_arena which is used for all page-level allocation
   and which can be re-used between pages (currently retains 1MB of memory).
   Previously, pages uses an arena that was tied to the lifetime of the page,
   thus it could not be re-used.

Using the Bench allocator for zig-js-runtime, allocated bytes went from
1347037879 to 834932438 (in a RUNS=1000 of puppeteer demo).

Various other changes to try to simplify the API and remove the possibility
of invalid states. For example, session.newPage() now includes the logic for
page.start() so that there should now never be a page that wasn't started.
2025-03-12 13:38:22 +08:00
..
2025-03-12 13:38:22 +08:00
2025-03-12 13:38:22 +08:00
2025-02-27 16:09:10 +08:00
2025-03-12 13:38:22 +08:00
2025-02-09 11:04:21 +08:00
2025-01-27 12:33:05 +01:00
2025-02-20 14:06:38 +08:00
2025-02-26 21:00:43 +08:00
2025-02-22 09:10:40 +08:00
2025-01-27 12:33:05 +01:00
2024-11-21 16:42:48 +01:00
2025-03-12 13:38:22 +08:00
2025-02-26 21:00:43 +08:00
2025-02-26 21:00:43 +08:00
2024-11-21 16:42:48 +01:00