r/ClaudeCode • • 5d ago

Built with Claude Love a Claude Code performance pass

Post image

Early days of the building process but noticed some laginess on a page an e2e account used and filled with test data to simulate real conditions. Asked it to use the chrome dev tools mcp to run a performance trace and look for ways to improve performance. After reading the new Claude code guidelines that say “be ambitious” can actually effect Claude’s decision making I tried it out.

Initially, we were just querying the database and dumping all the match results on the page as you can see there were something like 8000 Dom elements, and the page was holding all the information and also rendering it so the page was 2 MB just with HTML. Claude virtualize the list so we don’t have to keep it all in memory or render it all which drastically reduce the amount of elements on the page and the amount of memory. The client was using it also found a bug that the database only returns the first 1000 rows so we moved all of the pagination and filtering to the database now we can see all the data and only and keep the footprint small. Nothing revolutionary or new going on, but it would’ve taken me maybe days to implement the virtualization and moving everything to the database, testing it, etc.

1 Upvotes

1 comment sorted by

•

u/AutoModerator 5d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.