Skip to content

⚡ Bolt: [performance improvement]#66

Open
subsubl wants to merge 1 commit intomasterfrom
bolt-performance-optimizations-5916316229077723631
Open

⚡ Bolt: [performance improvement]#66
subsubl wants to merge 1 commit intomasterfrom
bolt-performance-optimizations-5916316229077723631

Conversation

@subsubl
Copy link
Copy Markdown
Owner

@subsubl subsubl commented Mar 17, 2026

What

  1. Optimized frontend search filtering in pages/index.vue by utilizing the transform option in useFetch to pre-compute lowercased strings (_searchName, _searchDesc).
  2. Optimized backend config parsing in server/api/apps.ts by replacing split('=') and join('=') with indexOf('=') and substring().

Why

  1. In pages/index.vue, calling .toLowerCase() on the name and description properties inside a reactive computed array loop meant string allocation happened on every single keystroke during a search.
  2. In server/api/apps.ts, creating arrays per line using split and join just to parse an INI-style config string causes unnecessary memory allocation and garbage collection pressure, which scales poorly when parsing many metadata files.

Impact

  • Reduces re-renders and memory allocations significantly during client-side searching.
  • Reduces CPU cycles and memory allocations per server request fetching application metadata.

Measurement

Run pnpm run build to verify there are no syntax errors and ensure the site builds successfully. Test frontend searching on the landing page; interaction should be smooth without frame drops.


PR created automatically by Jules for task 5916316229077723631 started by @subsubl

1. Optimize frontend search filtering by pre-computing lowercased strings in useFetch transform, preventing expensive O(N) string allocations inside a reactive computed loop.
2. Optimize backend string parsing in server/api/apps.ts by replacing `split`/`join` array allocations with `indexOf`/`substring`, reducing GC pressure.

Co-authored-by: subsubl <114085822+subsubl@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant