Skip to content

Config currently reads file for each read #637

Closed

Description

@sophiajt

The current version of config does not cache the contents of the config file after its been updated, so we're reading from disk for each time we retrieve a config setting.

Ideally, we could keep a live cache of what the current settings are, treat the config file as something only nu maintains, and then we could just read from the cache.

cc @wycats

Activity

  1. added
    status:needs-design
    polish
    on Sep 10, 2019
  2. andrasio commented on Nov 3, 2019

    @andrasio
    Member
  3. pwnorbitals commented on Oct 3, 2020

    @pwnorbitals

    I agree with the caching, but we may need a way to force a read if the contents are edited from outside nushell

  4. github-actions commented on Jun 24, 2021

    @github-actions

    This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

  5. github-actions commented on Jul 7, 2021

    @github-actions

    This issue has been marked stale for more than 10 days without activity. Closing this issue, but if you find that the issue is still valid, please reopen.

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

    polishstatus:needs-design

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions