| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:0066410d-9a38-3469-be55-b561b6341927 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E498:14EB29:52E0DD:72B7AC:6AFDE700 |
| html-safe-nonce | 7b60c185a6693b1cd75c01de03db391c227ed01cdc448904d0e7ea9b665e78a7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDk4OjE0RUIyOTo1MkUwREQ6NzJCN0FDOjZBRkRFNzAwIiwidmlzaXRvcl9pZCI6IjQ3ODcwNjMwMzgyOTUyNzExNjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bf2a08c2f95fc3833730a683a2a1ea02f35651c17d44d5ee8d238af979d6071e |
| hovercard-subject-tag | pull_request:3386962773 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/theskumar/python-dotenv/628/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/df7ec9c55cd3520e40dc22979b05f40dee4be5f586d976a7d06a521a8bbc3e77/theskumar/python-dotenv/pull/628 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/df7ec9c55cd3520e40dc22979b05f40dee4be5f586d976a7d06a521a8bbc3e77/theskumar/python-dotenv/pull/628 |
| og:image:alt | What was done
Changes were made to resolve_variables() in src/dotenv/main.py.
Previously, python-dotenv built the resolved environment by repeatedly merging dictionaries, creating full copies of al... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | matheusvir |
| hostname | github.com |
| expected-hostname | github.com |
| None | 91ef1a291a064ac31ac459ab3f75261dbdd924c41ea5bd027e591c5b46cc9ce7 |
| turbo-cache-control | no-cache |
| go-import | github.com/theskumar/python-dotenv git https://github.com/theskumar/python-dotenv.git |
| octolytics-dimension-user_id | 236356 |
| octolytics-dimension-user_login | theskumar |
| octolytics-dimension-repository_id | 23727790 |
| octolytics-dimension-repository_nwo | theskumar/python-dotenv |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 23727790 |
| octolytics-dimension-repository_network_root_nwo | theskumar/python-dotenv |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d62bc98ce2346f4006e4a2810e9e22f37e7e6422 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/theskumar/python-dotenv/pull/628#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftheskumar%2Fpython-dotenv%2Fpull%2F628 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftheskumar%2Fpython-dotenv%2Fpull%2F628 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=theskumar%2Fpython-dotenv |
| Reload | https://github.com/theskumar/python-dotenv/pull/628 |
| Reload | https://github.com/theskumar/python-dotenv/pull/628 |
| Reload | https://github.com/theskumar/python-dotenv/pull/628 |
| theskumar | https://github.com/theskumar |
| python-dotenv | https://github.com/theskumar/python-dotenv |
| Code | https://github.com/theskumar/python-dotenv |
| Issues52 (52) | https://github.com/theskumar/python-dotenv/issues |
| Pull requests74 (74) | https://github.com/theskumar/python-dotenv/pulls |
| Actions | https://github.com/theskumar/python-dotenv/actions |
| Wiki | https://github.com/theskumar/python-dotenv/wiki |
| Security and quality1 (1) | https://github.com/theskumar/python-dotenv/security |
| Insights | https://github.com/theskumar/python-dotenv/pulse |
| https://github.com/theskumar/python-dotenv |
| matheusvir | https://github.com/matheusvir |
| theskumar:main | https://github.com/theskumar/python-dotenv/tree/main |
| matheusvir:optimization/chainmap-resolve-variables | https://github.com/matheusvir/python-dotenv/tree/optimization/chainmap-resolve-variables |
| Conversation | https://github.com/theskumar/python-dotenv/pull/628 |
| Commits11 (11) | https://github.com/theskumar/python-dotenv/pull/628/commits |
| Checks | https://github.com/theskumar/python-dotenv/pull/628/checks |
| Files changed | https://github.com/theskumar/python-dotenv/pull/628/files |
| perf: replace dict merge with ChainMap in resolve_variables | https://github.com/theskumar/python-dotenv/pull/628#top |
| matheusvir | https://github.com/matheusvir |
| theskumar:main | https://github.com/theskumar/python-dotenv/tree/main |
| matheusvir:optimization/chainmap-resolve-variables | https://github.com/matheusvir/python-dotenv/tree/optimization/chainmap-resolve-variables |
|
| https://github.com/matheusvir |
| matheusvir | https://github.com/matheusvir |
| Mar 12, 2026 | https://github.com/theskumar/python-dotenv/pull/628#issue-4061552596 |
| https://raw.githubusercontent.com/matheusvir/eda-oss-performance/main/analysis/plots/python-dotenv/dotenv_chainmap_no_interpolation.png |
| https://raw.githubusercontent.com/matheusvir/eda-oss-performance/main/analysis/plots/python-dotenv/dotenv_chainmap_interpolation.png |
| matheusvir/eda-oss-performance | https://github.com/matheusvir/eda-oss-performance |
| setup/python-dotenv/Dockerfile | https://github.com/matheusvir/eda-oss-performance/blob/main/setup/python-dotenv/Dockerfile |
| experiments/python-dotenv/chainmap_load_test/generate_load.py | https://github.com/matheusvir/eda-oss-performance/blob/main/experiments/python-dotenv/chainmap_load_test/generate_load.py |
| experiments/python-dotenv/chainmap_load_test/run_load_test_no_interpolation.py | https://github.com/matheusvir/eda-oss-performance/blob/main/experiments/python-dotenv/chainmap_load_test/run_load_test_no_interpolation.py |
| experiments/python-dotenv/chainmap_load_test/run_load_test_interpolation.py | https://github.com/matheusvir/eda-oss-performance/blob/main/experiments/python-dotenv/chainmap_load_test/run_load_test_interpolation.py |
| experiments/python-dotenv/chainmap_load_test/run.sh | https://github.com/matheusvir/eda-oss-performance/blob/main/experiments/python-dotenv/chainmap_load_test/run.sh |
| #504 | https://github.com/theskumar/python-dotenv/issues/504 |
| Please reload this page | https://github.com/theskumar/python-dotenv/pull/628 |
| RailtonDantas | https://github.com/RailtonDantas |
| March 11, 2026 22:28 | https://github.com/theskumar/python-dotenv/pull/628#commits-pushed-da4c0e2 |
|
| https://github.com/RailtonDantas |
|
| https://github.com/matheusvir |
|
| https://github.com/ManoelNetto26 |
|
| https://github.com/Predd0o |
|
| https://github.com/Lucaslg7 |
|
| https://github.com/jpereira-Dev |
| perf: use ChainMap in resolve_variables to avoid redundant dict copies | https://github.com/theskumar/python-dotenv/pull/628/commits/da4c0e208d39a639960ef6ad41c41cc570796977 |
| da4c0e2 | https://github.com/theskumar/python-dotenv/pull/628/commits/da4c0e208d39a639960ef6ad41c41cc570796977 |
|
| https://github.com/RailtonDantas |
|
| https://github.com/matheusvir |
|
| https://github.com/ManoelNetto26 |
|
| https://github.com/Predd0o |
|
| https://github.com/Lucaslg7 |
|
| https://github.com/jpereira-Dev |
| docs(python-dotenv): describe resolve_variables method | https://github.com/theskumar/python-dotenv/pull/628/commits/93439895c9eb3fa4a1ba6176e31d4037d3068c09 |
| 9343989 | https://github.com/theskumar/python-dotenv/pull/628/commits/93439895c9eb3fa4a1ba6176e31d4037d3068c09 |
| https://github.com/matheusvir |
| matheusvir | https://github.com/matheusvir |
| force-pushed | https://github.com/theskumar/python-dotenv/compare/8a3d28737861581b4c0c65b1b25c20a9a5dad64d..93439895c9eb3fa4a1ba6176e31d4037d3068c09 |
| 8a3d287 | https://github.com/theskumar/python-dotenv/commit/8a3d28737861581b4c0c65b1b25c20a9a5dad64d |
| 9343989 | https://github.com/theskumar/python-dotenv/commit/93439895c9eb3fa4a1ba6176e31d4037d3068c09 |
|
Compare
| https://github.com/theskumar/python-dotenv/compare/8a3d28737861581b4c0c65b1b25c20a9a5dad64d..93439895c9eb3fa4a1ba6176e31d4037d3068c09 |
| March 12, 2026 01:38 | https://github.com/theskumar/python-dotenv/pull/628#event-23490532934 |
| RailtonDantas | https://github.com/RailtonDantas |
| March 11, 2026 23:19 | https://github.com/theskumar/python-dotenv/pull/628#commits-pushed-cfdc7e5 |
|
| https://github.com/RailtonDantas |
| style: merge collections imports into single line | https://github.com/theskumar/python-dotenv/pull/628/commits/cfdc7e57a6b9c5ee429f3a25d8c4c6d51fc450a2 |
| cfdc7e5 | https://github.com/theskumar/python-dotenv/pull/628/commits/cfdc7e57a6b9c5ee429f3a25d8c4c6d51fc450a2 |
|
| https://github.com/RailtonDantas |
| style: apply ruff formatting to main.py | https://github.com/theskumar/python-dotenv/pull/628/commits/f3a1b2fa50f475ba8af0400d989bee19d344df66 |
| f3a1b2f | https://github.com/theskumar/python-dotenv/pull/628/commits/f3a1b2fa50f475ba8af0400d989bee19d344df66 |
|
| https://github.com/RailtonDantas |
| style: add type comment to ChainMap assignments in resolve_variables | https://github.com/theskumar/python-dotenv/pull/628/commits/51aa9b8f2c34630b77f3dca468a9b123bf8f3228 |
| 51aa9b8 | https://github.com/theskumar/python-dotenv/pull/628/commits/51aa9b8f2c34630b77f3dca468a9b123bf8f3228 |
|
| https://github.com/RailtonDantas |
| style: fix unecessary space | https://github.com/theskumar/python-dotenv/pull/628/commits/4cdda2e250d4f5cf8b2c69e76290d1037b8ca966 |
| 4cdda2e | https://github.com/theskumar/python-dotenv/pull/628/commits/4cdda2e250d4f5cf8b2c69e76290d1037b8ca966 |
|
| https://github.com/RailtonDantas |
| style: fix space problem | https://github.com/theskumar/python-dotenv/pull/628/commits/5c5db9616999d6e9825c3eebad8b686ff5a6865c |
| 5c5db96 | https://github.com/theskumar/python-dotenv/pull/628/commits/5c5db9616999d6e9825c3eebad8b686ff5a6865c |
|
| https://github.com/RailtonDantas |
| style: fix ruff problems | https://github.com/theskumar/python-dotenv/pull/628/commits/738a47f7673ab48c53162f0cfa5f19a988bd52d3 |
| 738a47f | https://github.com/theskumar/python-dotenv/pull/628/commits/738a47f7673ab48c53162f0cfa5f19a988bd52d3 |
|
| https://github.com/RailtonDantas |
| style: add breakline after unset_key() | https://github.com/theskumar/python-dotenv/pull/628/commits/03a4ee947db1198d08e132c4546e90bf36666e14 |
| 03a4ee9 | https://github.com/theskumar/python-dotenv/pull/628/commits/03a4ee947db1198d08e132c4546e90bf36666e14 |
|
| https://github.com/RailtonDantas |
| style: fix ruff problems | https://github.com/theskumar/python-dotenv/pull/628/commits/e7ca8b39af583d35a99ccaacf1c80ba28596392e |
| e7ca8b3 | https://github.com/theskumar/python-dotenv/pull/628/commits/e7ca8b39af583d35a99ccaacf1c80ba28596392e |
|
| https://github.com/RailtonDantas |
| style: fix ruff problems | https://github.com/theskumar/python-dotenv/pull/628/commits/1f1ba01eb85b27902f7970346cc8b76896823858 |
| 1f1ba01 | https://github.com/theskumar/python-dotenv/pull/628/commits/1f1ba01eb85b27902f7970346cc8b76896823858 |
| https://github.com/matheusvir |
| matheusvir | https://github.com/matheusvir |
| Mar 26, 2026 | https://github.com/theskumar/python-dotenv/pull/628#event-23912871387 |
| https://github.com/TheNetherWatcher |
| TheNetherWatcher | https://github.com/TheNetherWatcher |
|
Oct 9, 2026
| https://github.com/theskumar/python-dotenv/pull/628#ref-pullrequest-5783878626 |
|
fix: don't let a variable without a value mask the environment in expansion
#728
| https://github.com/theskumar/python-dotenv/pull/728 |
| https://github.co/hiddenchars |
| https://github.com/theskumar/python-dotenv/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftheskumar%2Fpython-dotenv%2Fpull%2F628 |
| Please reload this page | https://github.com/theskumar/python-dotenv/pull/628 |
| Please reload this page | https://github.com/theskumar/python-dotenv/pull/628 |
|
| https://github.com/matheusvir |
|
| https://github.com/RailtonDantas |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |