Actions
Feature #13958
closed[PATCH] Dir.empty? releases GVL
Feature #13958:
[PATCH] Dir.empty? releases GVL
Status:
Closed
Assignee:
-
Target version:
-
Description
This converts all slow syscalls in the Dir.empty? implementation
to release GVL. We avoid unnecessarily GVL release and
reacquire for each slow call (opendir, readdir, closedir) and
instead only release and acquire the GVL once in the common
case.
- dir.c (rb_gc_for_fd_with_gvl): new function
(nogvl_dir_empty_p): ditto
(dir_s_empty_p): use new functions to release GVL
Files
Actions