Where do you store the cache?
Where do you store the cache?
Yeah, so without the cache I'd do roughly twice as many syscalls for directories in the worst case.
That cache is a cool trick.
Yeah, so without the cache I'd do roughly twice as many syscalls for directories in the worst case.
That cache is a cool trick.
I believe forbidding extensions in directories that represent namespaces would have a comparable amount of syscalls in practice without the extra complexity.
I believe forbidding extensions in directories that represent namespaces would have a comparable amount of syscalls in practice without the extra complexity.
It means running the boot process that allow you to use the stuff. As in the runner or console commands, things are ready for you.
It means running the boot process that allow you to use the stuff. As in the runner or console commands, things are ready for you.
That is why bin/rails boot is the baseline.
That is why bin/rails boot is the baseline.
It's the big ones where things amplify, and where you do not want to introduce perf regressions.
It's the big ones where things amplify, and where you do not want to introduce perf regressions.
Zeitwerk discards anything that does not have a .rb extension. I could document directories with .rb extension are no supported.
With that, I could save a good deal of syscalls.
Zeitwerk discards anything that does not have a .rb extension. I could document directories with .rb extension are no supported.
With that, I could save a good deal of syscalls.
@byroot.bsky.social is working on an API to fetch the type with the listing in one syscall. That would mitigate it I suppose.
@byroot.bsky.social is working on an API to fetch the type with the listing in one syscall. That would mitigate it I suppose.
The only difference is that the loader scans more dirs on setup (those without a corresponding .rb file, transitive).
The only difference is that the loader scans more dirs on setup (those without a corresponding .rb file, transitive).
But boot time in dev/test is something I don't want to mess with.
But boot time in dev/test is something I don't want to mess with.
Performance is OK, but the spec needs adjustment.
Performance is OK, but the spec needs adjustment.