livebud / bud

The Full-Stack Web Framework for Go
MIT License
5.57k stars 180 forks source link

don't trigger generators with stat() or filler dir's readdir() #264

Closed matthewmueller closed 2 years ago

matthewmueller commented 2 years ago

This PR reduces the scope of the virtual filesystem in order to reduce the number of calls to the generator functions.

After this PR:

This is a tradeoff, but I think it's going to be worth it. It will be more clear when generators run at the expense of being a less accurate filesystem. Surprisingly only a few of the tests failed and none of the framework tests failed after this change.

matthewmueller commented 2 years ago

Closing in favor of #268.