René's URL Explorer Experiment


Title: Using a getter function brings the CPU usage to over 100% - Production builds / Chrome ONLY · Issue #24614 · angular/angular · GitHub

Open Graph Title: Using a getter function brings the CPU usage to over 100% - Production builds / Chrome ONLY · Issue #24614 · angular/angular

X Title: Using a getter function brings the CPU usage to over 100% - Production builds / Chrome ONLY · Issue #24614 · angular/angular

Description: I'm submitting a... [ x ] Possible bug report [ x ] Performance issue Current behavior Looping over a list of objects import { Component } from '@angular/core'; @Component({ selector: 'home', templateUrl: './home.component.html', }) expo...

Open Graph Description: I'm submitting a... [ x ] Possible bug report [ x ] Performance issue Current behavior Looping over a list of objects import { Component } from '@angular/core'; @Component({ selector: 'home', templ...

X Description: I'm submitting a... [ x ] Possible bug report [ x ] Performance issue Current behavior Looping over a list of objects import { Component } from '@angular/core'; @Component({ selector: &...

Opengraph URL: https://github.com/angular/angular/issues/24614

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using a getter function brings the CPU usage to over 100% - Production builds / Chrome ONLY","articleBody":"## I'm submitting a...\r\n\u003cpre>\u003ccode>\r\n[ x ] Possible bug report  \u003c!-- Please search GitHub for a similar issue or PR before submitting -->\r\n[ x ] Performance issue\r\n\u003c/code>\u003c/pre>\r\n\r\n## Current behavior\r\nLooping over a list of objects\r\n\r\n```typescript\r\nimport { Component } from '@angular/core';\r\n\r\n@Component({\r\n  selector: 'home',\r\n  templateUrl: './home.component.html',\r\n})\r\nexport class HomeComponent {\r\n  get someList() {\r\n    return [\r\n      {\r\n        title: 'foo'\r\n      },\r\n      {\r\n        title: 'bar'\r\n      }\r\n    ];\r\n  }\r\n}\r\n```\r\n\r\n```html\r\n\u003cdiv *ngFor=\"let item of someList\">{{item.title}}\u003c/div>\r\n```\r\n\r\n![screen shot 2018-06-21 at 3 01 01 pm](https://user-images.githubusercontent.com/407537/41739727-f3b5ae6c-7563-11e8-85fd-cbe532e4264d.png)\r\n\r\n## Expected behavior\r\nIf there is a problem with the above usage, neither the linter nor the compiler caught it.\r\nIf the above usage is alright, then it should not consume lots of CPU cycles freezing the browser.\r\n\r\n\r\n## Minimal reproduction of the problem with instructions\r\n   * Copy the above code into a simple project\r\n   * ng build --prod\r\n   * cd into the dist directory\r\n   * serve the directory (ex: python -m SimpleHTTPServer)\r\n   * open localhost:port via browser (Chrome)\r\n   * check the cpu usage\r\n\r\n## Workaround\r\n\r\n```typescript\r\nimport { Component } from '@angular/core';\r\n\r\n@Component({\r\n  selector: 'home',\r\n  templateUrl: './home.component.html',\r\n})\r\nexport class HomeComponent {\r\n  someList = [\r\n    {\r\n      title: 'foo'\r\n    },\r\n    {\r\n      title: 'bar'\r\n    }\r\n  ];\r\n}\r\n```\r\n\r\n```html\r\n\u003cdiv *ngFor=\"let item of someList\">{{item.title}}\u003c/div>\r\n```\r\nIt would have been great if the problem was caught during the build.\r\nSuch errors is particularly hard to debug since the browser freezes and becomes unresponsive.\r\n\r\n## Environment\r\n\r\n\u003cpre>\u003ccode>\r\nAngular CLI: 6.0.8\r\nNode: 9.11.2\r\nOS: darwin x64\r\nAngular: 6.0.5\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... http, language-service, platform-browser\r\n... platform-browser-dynamic, platform-server, router\r\n... service-worker\r\n\r\nPackage                            Version\r\n------------------------------------------------------------\r\n@angular-devkit/architect          0.6.8\r\n@angular-devkit/build-angular      0.6.8\r\n@angular-devkit/build-ng-packagr   0.6.8\r\n@angular-devkit/build-optimizer    0.6.8\r\n@angular-devkit/core               0.6.8\r\n@angular-devkit/schematics         0.6.8\r\n@angular/cdk                       6.2.1\r\n@angular/cli                       6.0.8\r\n@angular/flex-layout               6.0.0-beta.16\r\n@angular/material                  6.2.1\r\n@angular/pwa                       0.6.8\r\n@ngtools/json-schema               1.1.0\r\n@ngtools/webpack                   6.0.8\r\n@schematics/angular                0.6.8\r\n@schematics/update                 0.6.8\r\nng-packagr                         3.0.2\r\nrxjs                               6.2.1\r\ntypescript                         2.7.2\r\nwebpack                            4.8.3\r\n\r\nBrowser:\r\n[x] Chrome - Version 67.0.3396.87 (Official Build) (64-bit)\r\n\u003c/code>\u003c/pre>\r\n","author":{"url":"https://github.com/un33k","@type":"Person","name":"un33k"},"datePublished":"2018-06-21T19:59:45Z","url":"https://github.com/angular/angular/issues/24614"}

react-profiling0
react-import-mapreact,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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:16e058d0-38a6-a32a-ba51-09a43e2da9dd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id99C8:57C3A:1471E6B:1CBB027:6B045CAA
html-safe-nonce9fed3abf0140d595c7370730720ab39640b403782946b3a865062593dbda113e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUM4OjU3QzNBOjE0NzFFNkI6MUNCQjAyNzo2QjA0NUNBQSIsInZpc2l0b3JfaWQiOiIxODMyODc4ODUwMTQxNjA5MTMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc755f3379715b31bb41529d9c2fc85558926ba55459cb60b26e992f6a55d070a
hovercard-subject-tagissue:334636165
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/24614/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7ebf5c4e8ef674aa87b3c2ce6e40fe674af3d5ab37004e0115aa2384be5ca7ee/angular/angular/issues/24614
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7ebf5c4e8ef674aa87b3c2ce6e40fe674af3d5ab37004e0115aa2384be5ca7ee/angular/angular/issues/24614
og:image:altI'm submitting a... [ x ] Possible bug report [ x ] Performance issue Current behavior Looping over a list of objects import { Component } from '@angular/core'; @Component({ selector: 'home', templ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameun33k
hostnamegithub.com
expected-hostnamegithub.com
None2d58451b4bcb73c33c67bfb6b28fb75fe6d5e279daf9b560fa4fd832f3d8c9a6
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release03e114520787ad27289207f153520ef97461127c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/24614#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F24614
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F24614
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/24614
Reloadhttps://github.com/angular/angular/issues/24614
Reloadhttps://github.com/angular/angular/issues/24614
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues841 (841)https://github.com/angular/angular/issues
Pull requests149 (149)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/24614
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/24614
Using a getter function brings the CPU usage to over 100% - Production builds / Chrome ONLYhttps://github.com/angular/angular/issues/24614#top
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/un33k
un33khttps://github.com/un33k
on Jun 21, 2018https://github.com/angular/angular/issues/24614#issue-334636165
https://user-images.githubusercontent.com/407537/41739727-f3b5ae6c-7563-11e8-85fd-cbe532e4264d.png
jasonadenhttps://github.com/jasonaden
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
on Jun 21, 2018https://github.com/angular/angular/issues/24614#event-1694801087
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Jun 21, 2018https://github.com/angular/angular/issues/24614#event-1694801285
https://github.com/Toxicable
Toxicablehttps://github.com/Toxicable
on Jun 22, 2018https://github.com/angular/angular/issues/24614#issuecomment-399317288
https://github.com/un33k
un33khttps://github.com/un33k
on Jun 24, 2018https://github.com/angular/angular/issues/24614#issuecomment-399730872
@Toxicablehttps://github.com/Toxicable
https://github.com/Toxicable
Toxicablehttps://github.com/Toxicable
on Jun 25, 2018https://github.com/angular/angular/issues/24614#issuecomment-399823123
@un33khttps://github.com/un33k
https://github.com/dawidgarus
dawidgarushttps://github.com/dawidgarus
on Jun 25, 2018https://github.com/angular/angular/issues/24614#issuecomment-399891714
https://github.com/Toxicable
Toxicablehttps://github.com/Toxicable
on Jun 25, 2018https://github.com/angular/angular/issues/24614#issuecomment-399900827
@dawidgarushttps://github.com/dawidgarus
https://github.com/dawidgarus
dawidgarushttps://github.com/dawidgarus
on Jun 25, 2018https://github.com/angular/angular/issues/24614#issuecomment-399907060
@Toxicablehttps://github.com/Toxicable
https://github.com/Toxicable
Toxicablehttps://github.com/Toxicable
on Jun 25, 2018https://github.com/angular/angular/issues/24614#issuecomment-399909262
@dawidgarushttps://github.com/dawidgarus
https://github.com/mlc-mlapis
mlc-mlapishttps://github.com/mlc-mlapis
on Jun 25, 2018https://github.com/angular/angular/issues/24614#issuecomment-399911321
https://github.com/mhevery
mheveryhttps://github.com/mhevery
on Jun 28, 2018https://github.com/angular/angular/issues/24614#issuecomment-401194554
mheveryhttps://github.com/mhevery
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 28, 2018https://github.com/angular/angular/issues/24614#event-1707491723
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 14, 2019https://github.com/angular/angular/issues/24614#issuecomment-531513289
automatic conversation locking policyhttps://github.com/angular/angular/blob/67d80f/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 14, 2019https://github.com/angular/angular/issues/24614#event-2634331940
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/24614
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/24614
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
needsTriageNo due datehttps://github.com/angular/angular/milestone/83
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.