Skip to content

Content loading and I/O #65

Description

@michaelnisi

In ContentProvider+File we use synchronous file I/O (Data(contentsOf:)) inside async handlers. For a low-traffic personal site behind Cloudflare, this may be fine.

If we want to be rigorous with non-blocking I/O, consider:

• Preloading content at startup into memory / a cache
• NIO’s non-blocking file I/O if we expect growth or want to avoid blocking threads

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions