Skip to content

fs.realpathSync(vaultPath) recomputed once per wikilink #373

Open

Description

@Kuldeep2822k

Location: src/storage/wikilink.ts:207 (from resolveWikilinkRoadmap :382)

resolveWikilinkTarget calls realpathSync(vaultPath) on every invocation; resolveWikilinkRoadmap loops all sections x links, so the vault root is canonicalized N times for an N-link roadmap.

Fix: Hoist realpathSync(vaultPath) into resolveWikilinkRoadmap and pass the resolved root in.

From the 2026-10-10 codebase audit sweep (CODEBASE_AUDIT.md).

Activity

  1. added
    coreCore source code changes
    refactorRefactoring code without changing behavior
    on Oct 10, 2026
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

    coreCore source code changespriority: lowLow priorityrefactorRefactoring code without changing behavior

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions