Skip to content

impact: 0.1.9 answers 2-4x slower than 0.1.8, most of all on the first query after index #1924

Closed

Description

@swapnilpaliwal-sd

Symptom

axiomcode impact <name> answers slower in 0.1.9 than in 0.1.8, most of all on the first query right after axiomcode index.

Measured on clean Linux x64 VMs, small real projects, first impact right after index:

project 0.1.8 0.1.9
~60-file Java 0.51 s 1.68 s
~40-file Python 0.44 s 1.76 s
small TypeScript 0.37 s 1.07 s
~150-file JavaScript 0.98 s 3.28 s

Warm Java impact is ~0.8-0.9 s against 0.1.8's 0.5 s cold. On Windows a JavaScript impact went from 3.6 s to 17 s.

Where the time goes (reproduced on macOS)

  1. The first query waits for the facts export. 0.1.9 moved impact's facts export (axiomcode-impact --warm) out of index and into the background. On a small project index now returns while the export is still running, and the first impact sleeps on the export lock until it ends: 1.5 s of a 2.0 s first query on the ~150-file JavaScript project. 0.1.8 paid the same export inside index.
  2. Every warm query does more work. On the ~60-file Java project a warm front-door query took 0.59 s against 0.34 s:
    • the unresolved-site candidates (unknown_sites) issued ~680 SQL queries and ran 30k regex scans of the same file, about 0.1 s
    • the front door's renderer (ax_blocks.py) starts a second Python process after ax_fresh.py, about 25-40 ms on macOS and more on Windows
    • the renderer looks up the enclosing function once per place with file LIKE '%/f', which scans the whole symbols table each time (~130 scans per answer), so the cost grows with the size of the graph
    • the renderer starts its word git grep only after the verb has answered

Expected

The first query after index, and a warm query, take about what 0.1.8 took, with the same answers.

Activity

  1. added
    bugSomething isn't working
    skillAgent-facing query skill (skills/axiomcode)
    on Oct 11, 2026
  2. swapnilpaliwal-sd commented on Oct 11, 2026

    @swapnilpaliwal-sd
    ContributorAuthor

    Fix: #1926 (into dev). First impact after index: JavaScript 1.69 -> 0.50 s, Python 1.04 -> 0.39 s, Java 0.58 -> 0.49 s (0.1.8: 0.62 / 0.33 / 0.43). Warm: Java 0.50 -> 0.44, JavaScript 0.53 -> 0.38, Python 0.47 -> 0.34 s. Answers byte-identical.

  3. added a commit that references this issue on Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't workingskillAgent-facing query skill (skills/axiomcode)

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions