Why does Cygwin always use absolute paths instead of OBJECT_ATTRIBUTES.RootDirectory?

Brian Inglis Brian.Inglis@SystematicSW.ab.ca
Wed Feb 4 21:37:16 GMT 2026


On 2026-02-04 14:17, Dan Shelton via Cygwin wrote:
> Why does Cygwin always use absolute paths instead of
> OBJECT_ATTRIBUTES.RootDirectory in NtOpenFile(),
> NtSetInformationFile() for rename and hardlinks
> 
> This slows down Cygwin path lookups a lot, and with lots of path
> elements each lookup with a relative RootDirectory might be a lot
> faster, e.g. for openat(), linkat(), renameat().

Because volunteers' spare time is limited, and performance is good enough for 
those who might do the work:

	https://cygwin.com/acronyms/#PTC

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher  but when there is no more to cut
                                 -- Antoine de Saint-Exupéry


More information about the Cygwin mailing list