{"id":15457663,"url":"https://github.com/saihaj/wagmi-performance-profiling","last_synced_at":"2025-04-01T09:49:00.108Z","repository":{"id":194448688,"uuid":"690857033","full_name":"saihaj/wagmi-performance-profiling","owner":"saihaj","description":"First load performance with wagmi","archived":false,"fork":false,"pushed_at":"2023-09-13T03:03:35.000Z","size":1601,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-08T03:33:09.792Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saihaj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-13T02:53:25.000Z","updated_at":"2023-09-13T03:04:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"9ca66cee-05f9-43f8-a43d-daacf6266497","html_url":"https://github.com/saihaj/wagmi-performance-profiling","commit_stats":null,"previous_names":["saihaj/wagmi-performance-profiling"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saihaj%2Fwagmi-performance-profiling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saihaj%2Fwagmi-performance-profiling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saihaj%2Fwagmi-performance-profiling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saihaj%2Fwagmi-performance-profiling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saihaj","download_url":"https://codeload.github.com/saihaj/wagmi-performance-profiling/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246620266,"owners_count":20806721,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T22:49:20.659Z","updated_at":"2025-04-01T09:49:00.085Z","avatar_url":"https://github.com/saihaj.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Performance profiling\n\nTrying to investigate initial load impacts of `wagmi`.\nBefore the browser can paint anything to the page, `wagmi` context seems to be doing something expensive that it takes blocking time on the main thread.\n\nAfter some investigation, it seems like most of the compute is being spent on some ENS normalizations.\n![ENS normalize biggest culprit](screenshots/1.png)\n\nYou can check the [performance profile](./wagmi-load.json.zip) and investigate other things.\n\nThis is concerning because we are just showing a connect button and there is no wallet connected and it seems to be crunching some time on ENS.\n\nIn an ideal world, to optimize speed we should be able to defer loading of most of things from `wagmi` until user interacts with the connect button.\n\n### To reproduce\n1. Clone this repo\n2. `pnpm install` - install dependencies\n3. `pnpm dev` - start dev server\n4. Open `localhost:3000` in Chrome\n5. Open devtools and go to `Performance` tab\n6. Click on start profiling and reload the page (on Mac Cmd + Shift + E)\n7. Take profile for 3 seconds\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaihaj%2Fwagmi-performance-profiling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaihaj%2Fwagmi-performance-profiling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaihaj%2Fwagmi-performance-profiling/lists"}