René's URL Explorer Experiment


Title: @ngtools/webpack / ngc - 4x slower aot compilation from ng6 to ng7 · Issue #26674 · angular/angular · GitHub

Open Graph Title: @ngtools/webpack / ngc - 4x slower aot compilation from ng6 to ng7 · Issue #26674 · angular/angular

X Title: @ngtools/webpack / ngc - 4x slower aot compilation from ng6 to ng7 · Issue #26674 · angular/angular

Description: I'm submitting a... [x] Regression (a behavior that used to work and stopped working in a new release) [x] Performance issue Current behavior webpack incremental build with angular 7 takes ~30 seconds in angular 6 it was ~10 seconds pack...

Open Graph Description: I'm submitting a... [x] Regression (a behavior that used to work and stopped working in a new release) [x] Performance issue Current behavior webpack incremental build with angular 7 takes ~30 seco...

X Description: I'm submitting a... [x] Regression (a behavior that used to work and stopped working in a new release) [x] Performance issue Current behavior webpack incremental build with angular 7 takes ~30 ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@ngtools/webpack / ngc - 4x slower aot compilation from ng6 to ng7","articleBody":"## I'm submitting a...\r\n[x] Regression (a behavior that used to work and stopped working in a new release)\r\n[x] Performance issue\r\n\r\n## Current behavior\r\n\r\nwebpack incremental build with angular 7 takes ~30 seconds\r\nin angular 6 it was ~10 seconds\r\n\r\npackage.json (angular 7.0.0, webpack 4.12)\r\n\r\n```json\r\n{\r\n    \"@angular/animations\": \"^7.0.0\",\r\n    \"@angular/cli\": \"^7.0.2\",\r\n    \"@angular/common\": \"^7.0.0\",\r\n    \"@angular/compiler\": \"^7.0.0\",\r\n    \"@angular/compiler-cli\": \"^7.0.0\",\r\n    \"@angular/core\": \"^7.0.0\",\r\n    \"@angular/forms\": \"^7.0.0\",\r\n    \"@angular/platform-browser\": \"^7.0.0\",\r\n    \"@angular/platform-browser-dynamic\": \"^7.0.0\",\r\n    \"@angular/platform-server\": \"^7.0.0\",\r\n    \"@angular/router\": \"^7.0.0\",\r\n    \"@ngtools/webpack\": \"^7.0.2\",\r\n    \"@types/bootstrap\": \"4.1.2\",\r\n    \"@types/jest\": \"^23.3.5\",\r\n    \"@types/jquery\": \"^3.3.21\",\r\n    \"@types/js-yaml\": \"^3.11.2\",\r\n    \"@types/lodash\": \"4.14.117\",\r\n    \"@types/node\": \"10.12.0\",\r\n    \"@types/reflect-metadata\": \"0.1.0\",\r\n    \"@types/webpack\": \"^4.4.17\",\r\n    \"@types/webpack-env\": \"^1.13.6\",\r\n    \"autoprefixer\": \"9.2.1\",\r\n    \"bootstrap-sass\": \"3.3.7\",\r\n    \"circular-dependency-plugin\": \"^5.0.2\",\r\n    \"core-js\": \"2.5.7\",\r\n    \"css-loader\": \"1.0.0\",\r\n    \"file-loader\": \"^2.0.0\",\r\n    \"ismobilejs\": \"0.4.1\",\r\n    \"jquery\": \"3.3.1\",\r\n    \"loader-utils\": \"1.1.0\",\r\n    \"lodash\": \"4.17.11\",\r\n    \"mini-css-extract-plugin\": \"^0.4.4\",\r\n    \"moment\": \"2.22.2\",\r\n    \"node-sass\": \"4.9.4\",\r\n    \"postcss-loader\": \"3.0.0\",\r\n    \"postcss-raw\": \"0.1.2\",\r\n    \"postcss-scopify\": \"0.1.9\",\r\n    \"postcss-url\": \"^8.0.0\",\r\n    \"raven-js\": \"^3.27.0\",\r\n    \"rimraf\": \"2.6.2\",\r\n    \"rxjs\": \"^6.3.3\",\r\n    \"rxjs-compat\": \"^6.3.3\",\r\n    \"sass-loader\": \"7.1.0\",\r\n    \"sync-p\": \"1.1.5\",\r\n    \"ts-node\": \"^7.0.1\",\r\n    \"tslib\": \"^1.9.3\",\r\n    \"typescript\": \"^3.1.3\",\r\n    \"webpack\": \"^4.22.0\",\r\n    \"webpack-cli\": \"^3.1.2\",\r\n    \"webpack-merge\": \"^4.1.4\",\r\n    \"webpack-sources\": \"^1.3.0\",\r\n    \"webpack-uglify-parallel\": \"0.1.4\",\r\n    \"zone.js\": \"^0.8.26\"\r\n}\r\n```\r\n\r\nIt seems like typescript needs a lot of time for something:\r\n\r\n[CPU-20181023T113903.cpuprofile.zip](https://github.com/angular/angular/files/2505608/CPU-20181023T113903.cpuprofile.zip)\r\n\r\n![image](https://user-images.githubusercontent.com/905328/47351932-47669880-d6b9-11e8-82c0-38fe18fe623e.png)\r\n\r\n![image](https://user-images.githubusercontent.com/905328/47352043-7250ec80-d6b9-11e8-9c16-67fa83c16378.png)\r\n\r\n```bash\r\nAngularCompilerPlugin._createOrUpdateProgram.ng.loadNgStructureAsync: 25729.967ms\r\nAngularCompilerPlugin._emit.ng.getNgStructuralDiagnostics: 0.010ms\r\nAngularCompilerPlugin._emit.ng.emit: 1930.130ms\r\nAngularCompilerPlugin._emit: 1930.281ms\r\nAngularCompilerPlugin._update._emit: 1930.317ms\r\nAngularCompilerPlugin._update: 27720.982ms\r\nAngularCompilerPlugin._make: 27721.017ms\r\n```\r\n\r\nI observe the same behavior when running `ngc` directly instead of webpack.\r\nIf i use `tsc` to compile the project, that watch/rebuild takes ~1second.\r\n\r\n## Expected behavior\r\nfaster incremental build\r\n\r\n## Minimal reproduction of the problem with instructions\r\nCan't share the repo, but if this ticket isn't sufficient, maybe I can strip down the project.\r\n\r\n## Environment\r\nAngular version: 7.0.0\r\n\r\nFor Tooling issues:\r\n- Node version: v8.12.0\r\n- Platform:  macOS 10.13.6","author":{"url":"https://github.com/sod","@type":"Person","name":"sod"},"datePublished":"2018-10-23T10:01:15Z","url":"https://github.com/angular/angular/issues/26674"}

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:a1c12114-78b7-339f-eb32-ca3ac421c92b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9486:E9D16:8EB6E2:B4A566:6B012303
html-safe-nonce79f41ead6a170f9969b217f85e6bb7b5126b202038a97b4900d3dfd2c0de62a0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDg2OkU5RDE2OjhFQjZFMjpCNEE1NjY6NkIwMTIzMDMiLCJ2aXNpdG9yX2lkIjoiNTA2MTYyOTA0MDQxOTQ4MDMyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacfd9ed7823e29f9d35d484cbea111d481ae021353a28b6ebbc2e236852845e85c
hovercard-subject-tagissue:372915108
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/26674/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f5555a41444a753d0c3e0e020d83431b545e8f304dbc4f01201c6e5ebd814c7e/angular/angular/issues/26674
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f5555a41444a753d0c3e0e020d83431b545e8f304dbc4f01201c6e5ebd814c7e/angular/angular/issues/26674
og:image:altI'm submitting a... [x] Regression (a behavior that used to work and stopped working in a new release) [x] Performance issue Current behavior webpack incremental build with angular 7 takes ~30 seco...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesod
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/26674#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F26674
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%2F26674
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/26674
Reloadhttps://github.com/angular/angular/issues/26674
Reloadhttps://github.com/angular/angular/issues/26674
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests141 (141)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/26674
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/26674
@ngtools/webpack / ngc - 4x slower aot compilation from ng6 to ng7https://github.com/angular/angular/issues/26674#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/sod
sodhttps://github.com/sod
on Oct 23, 2018https://github.com/angular/angular/issues/26674#issue-372915108
CPU-20181023T113903.cpuprofile.ziphttps://github.com/angular/angular/files/2505608/CPU-20181023T113903.cpuprofile.zip
https://user-images.githubusercontent.com/905328/47351932-47669880-d6b9-11e8-82c0-38fe18fe623e.png
https://user-images.githubusercontent.com/905328/47352043-7250ec80-d6b9-11e8-9c16-67fa83c16378.png
https://github.com/sod
sodhttps://github.com/sod
on Oct 23, 2018https://github.com/angular/angular/issues/26674#issuecomment-432213607
CPU-20181023T134145.cpuprofile.ziphttps://github.com/angular/angular/files/2505946/CPU-20181023T134145.cpuprofile.zip
https://user-images.githubusercontent.com/905328/47358418-f3b07b00-d6c9-11e8-89fd-2fbaa6fba144.png
https://github.com/trotyl
trotylhttps://github.com/trotyl
on Oct 23, 2018https://github.com/angular/angular/issues/26674#issuecomment-432305976
angular/angular-cli#12646https://github.com/angular/angular-cli/issues/12646
https://github.com/sod
sodhttps://github.com/sod
on Oct 23, 2018https://github.com/angular/angular/issues/26674#issuecomment-432329590
sodhttps://github.com/sod
on Oct 23, 2018https://github.com/angular/angular/issues/26674#event-1921112106
filipesilvahttps://github.com/filipesilva
on Oct 24, 2018https://github.com/angular/angular/issues/26674#event-1924446097
filipesilvahttps://github.com/filipesilva
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%22
on Oct 24, 2018https://github.com/angular/angular/issues/26674#event-1924446693
filipesilvahttps://github.com/filipesilva
on Oct 24, 2018https://github.com/angular/angular/issues/26674#event-1924446786
filipesilvahttps://github.com/filipesilva
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
on Oct 24, 2018https://github.com/angular/angular/issues/26674#event-1924446892
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Oct 25, 2018https://github.com/angular/angular/issues/26674#issuecomment-432946292
microsoft/TypeScript#28025https://github.com/microsoft/TypeScript/issues/28025
microsoft/TypeScript#28028https://github.com/microsoft/TypeScript/pull/28028
@thekibahttps://github.com/thekiba
matskohttps://github.com/matsko
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
on Oct 30, 2018https://github.com/angular/angular/issues/26674#event-1936175113
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Oct 30, 2018https://github.com/angular/angular/issues/26674#event-1936175208
https://github.com/IgorMinar
IgorMinarhttps://github.com/IgorMinar
on Nov 4, 2018https://github.com/angular/angular/issues/26674#issuecomment-435703982
IgorMinarhttps://github.com/IgorMinar
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 4, 2018https://github.com/angular/angular/issues/26674#event-1945005142
https://github.com/achmedzhanov
achmedzhanovhttps://github.com/achmedzhanov
on Nov 6, 2018https://github.com/angular/angular/issues/26674#issuecomment-436166249
https://user-images.githubusercontent.com/2890929/48052271-e82c7c00-e1c0-11e8-935f-170a0f01106d.PNG
https://github.com/achmedzhanov
achmedzhanovhttps://github.com/achmedzhanov
on Nov 6, 2018https://github.com/angular/angular/issues/26674#issuecomment-436169828
https://github.com/sod
sodhttps://github.com/sod
on Nov 8, 2018https://github.com/angular/angular/issues/26674#issuecomment-437040121
https://github.com/sod
sodhttps://github.com/sod
on Nov 30, 2018https://github.com/angular/angular/issues/26674#issuecomment-443212519
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Nov 30, 2018https://github.com/angular/angular/issues/26674#issuecomment-443230171
@sodhttps://github.com/sod
https://github.com/sod
sodhttps://github.com/sod
on Nov 30, 2018https://github.com/angular/angular/issues/26674#issuecomment-443263655
https://github.com/filipesilva
filipesilvahttps://github.com/filipesilva
on Nov 30, 2018https://github.com/angular/angular/issues/26674#issuecomment-443265836
@sodhttps://github.com/sod
angular/angular-cli#13102https://github.com/angular/angular-cli/issues/13102
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/26674#issuecomment-531464575
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/26674#event-2634041728
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/26674
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/26674
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

Viewport: width=device-width


URLs of crawlers that visited me.