Andreas Kling
5dcc58d54a
Kernel+LibCore: Make %sid path parsing not take ages
...
Before this patch, Core::SessionManagement::parse_path_with_sid() would
figure out the root session ID by sifting through /sys/kernel/processes.
That file can take quite a while to generate (sometimes up to 40ms on my
machine, which is a problem on its own!) and with no caching, many of
our programs were effectively doing this multiple times on startup when
unveiling something in /tmp/session/%sid/
While we should find ways to make generating /sys/kernel/processes fast
again, this patch addresses the specific problem by introducing a new
syscall: sys$get_root_session_id(). This extracts the root session ID
by looking directly at the process table and takes <1ms instead of 40ms.
This cuts WebContent process startup time by ~100ms on my machine. :^)
2023-01-10 19:32:31 +01:00
..
2023-01-10 19:32:31 +01:00
2023-01-06 11:09:56 +01:00
2023-01-05 01:44:19 +01:00
2023-01-07 11:45:08 -07:00
2023-01-09 19:26:01 -07:00
2022-12-28 11:53:41 +01:00
2023-01-07 11:51:13 -07:00
2023-01-02 20:27:20 -05:00
2022-12-28 11:53:41 +01:00
2022-12-29 19:32:20 -07:00
2023-01-02 18:15:27 -05:00
2023-01-02 20:27:20 -05:00
2023-01-08 21:51:59 +01:00
2022-12-28 11:53:41 +01:00
2023-01-07 11:45:08 -07:00
2023-01-10 19:32:31 +01:00
2022-12-28 11:53:41 +01:00
2023-01-07 11:45:08 -07:00
2022-04-01 21:24:45 +01:00
2022-10-16 17:35:37 +02:00
2023-01-08 21:51:59 +01:00
2023-01-06 11:09:56 +01:00
2023-01-06 11:09:56 +01:00
2023-01-02 18:15:27 -05:00
2023-01-02 18:15:27 -05:00
2023-01-03 18:13:11 +01:00
2023-01-03 18:13:11 +01:00
2023-01-08 21:51:59 +01:00
2022-10-17 20:11:31 +02:00
2023-01-02 18:15:27 -05:00
2022-07-21 16:39:22 +02:00
2022-10-14 13:45:33 +02:00
2022-10-17 20:11:31 +02:00
2022-12-28 11:53:41 +01:00
2022-12-28 11:53:41 +01:00
2022-11-05 18:00:58 -06:00
2023-01-02 18:15:27 -05:00
2023-01-07 03:44:59 +03:30
2023-01-02 18:15:27 -05:00
2023-01-02 20:27:20 -05:00
2022-07-12 23:11:35 +02:00
2022-07-12 23:11:35 +02:00
2023-01-02 18:15:27 -05:00
2021-11-30 11:16:35 +01:00
2022-04-01 21:24:45 +01:00
2022-10-01 14:09:01 +02:00
2022-12-28 11:53:41 +01:00
2022-12-28 11:53:41 +01:00
2022-08-24 14:57:51 +02:00
2023-01-04 20:04:57 +01:00
2023-01-07 03:44:59 +03:30
2023-01-10 19:32:31 +01:00
2023-01-02 20:27:20 -05:00
2022-11-24 16:56:27 +01:00
2023-01-02 18:15:27 -05:00
2023-01-02 18:15:27 -05:00
2022-11-08 02:54:48 -07:00
2022-11-08 02:54:48 -07:00
2022-12-28 11:53:41 +01:00
2023-01-02 18:15:27 -05:00
2021-12-30 14:32:17 +01:00
2023-01-02 18:15:27 -05:00
2023-01-02 18:15:27 -05:00
2022-12-29 19:32:20 -07:00
2022-12-29 19:32:20 -07:00
2022-12-03 23:52:23 +00:00
2022-12-03 23:52:23 +00:00
2022-12-28 11:53:41 +01:00
2023-01-02 18:15:27 -05:00
2023-01-04 20:04:57 +01:00
2022-08-26 12:51:57 +02:00
2022-04-01 21:24:45 +01:00
2022-12-28 11:53:41 +01:00
2023-01-02 18:15:27 -05:00
2022-08-20 17:20:43 +02:00
2022-03-04 20:07:05 +01:00
2021-11-08 01:10:53 +01:00
2021-08-24 01:57:11 +02:00
2022-04-01 21:24:45 +01:00
2022-08-20 17:20:43 +02:00
2023-01-02 18:15:27 -05:00