Ryan Liptak
274d19575e
fs: Optimize Dir.deleteTree for non-deeply-nested directories
...
`deleteTree` now uses a stack-allocated stack for the first 16 nested directories, and then falls back to the previous implementation (which only keeps 1 directory open at a time) when it runs out of room in its stack. This allows the function to perform as well as a recursive implementation for most use-cases without needing allocation or introducing the possibility of stack overflow.
2022-10-05 03:27:25 -07:00
..
2022-04-27 11:10:52 +02:00
2022-09-29 14:41:39 +03:00
2022-09-29 21:45:30 +03:00
2022-09-29 21:45:30 +03:00
2022-09-16 14:46:53 -04:00
2022-05-09 18:51:46 +02:00
2022-08-22 11:19:20 +03:00
2022-08-22 11:19:20 +03:00
2022-10-05 03:26:13 -07:00
2022-08-22 11:19:20 +03:00
2022-09-12 18:13:24 -07:00
2022-05-11 15:43:18 -04:00
2022-08-27 11:17:48 +03:00
2022-07-23 13:52:16 +03:00
2022-09-29 21:42:56 +03:00
2022-09-29 21:45:30 +03:00
2022-05-04 21:26:48 +02:00
2022-07-13 16:10:41 -07:00
2022-10-03 22:48:57 -04:00
2022-08-30 13:02:17 +03:00
2022-08-02 19:22:09 -07:00
2022-06-25 21:27:56 -07:00
2022-08-22 11:19:20 +03:00
2022-08-22 13:55:00 +03:00
2022-07-26 11:25:49 -07:00
2022-10-03 23:43:09 -04:00
2022-10-03 22:57:53 -04:00
2022-09-16 14:46:53 -04:00
2022-04-19 19:42:15 -05:00
2022-09-29 21:45:30 +03:00
2022-09-13 18:36:39 -07:00
2022-08-16 20:35:03 +03:00
2022-05-11 18:41:23 -06:00
2022-09-29 21:45:30 +03:00
2022-09-29 21:45:30 +03:00
2022-09-29 21:45:30 +03:00
2022-10-03 12:59:47 +03:00
2022-08-31 19:30:51 +02:00
2022-06-11 23:49:33 +03:00
2022-07-01 13:18:08 +02:00
2022-09-20 19:05:00 -07:00
2022-08-23 21:11:02 -07:00
2022-05-27 16:43:33 -04:00
2022-08-27 11:17:48 +03:00
2022-09-27 13:21:01 +03:00
2022-09-29 21:45:30 +03:00
2022-10-05 03:27:25 -07:00
2022-09-16 14:46:53 -04:00
2022-08-22 11:19:20 +03:00
2022-05-11 15:43:18 -04:00
2022-09-07 22:42:57 +02:00
2022-09-20 00:50:13 +03:00
2022-08-22 11:19:20 +03:00
2022-09-11 23:18:43 -04:00
2022-09-16 14:46:53 -04:00
2022-09-18 10:00:04 +02:00
2022-10-01 13:46:20 +03:00
2022-09-20 00:50:13 +03:00
2022-09-27 18:42:20 +03:00
2022-09-16 14:46:53 -04:00
2022-07-25 22:04:30 +03:00
2022-09-15 22:54:17 -04:00
2022-08-22 11:19:20 +03:00
2022-08-17 16:36:02 -04:00
2022-09-16 14:46:53 -04:00
2022-09-16 14:46:53 -04:00
2022-09-14 14:42:58 -07:00
2022-05-26 21:58:19 -07:00
2022-09-29 21:45:30 +03:00
2022-06-03 20:21:20 +03:00
2022-07-25 22:04:30 +03:00
2022-09-07 15:22:30 +03:00
2022-09-07 22:42:55 +02:00
2022-05-11 15:43:18 -04:00
2022-08-29 14:10:59 -07:00
2022-09-29 21:40:25 +02:00
2022-09-12 18:13:24 -07:00
2022-05-27 16:43:33 -04:00
2022-04-15 17:01:01 -05:00
2022-06-17 21:04:21 +03:00
2022-06-11 11:02:56 +03:00
2022-06-11 23:49:33 +03:00
2022-09-13 20:26:04 -04:00