Look into /d2FuncCache1 (MSVC)
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 40.4k
- Forks
- 8.1k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 96
Description
Description
I've just stumbled upon this undocumented compiler option which we apply unconditionally, and found https://devblogs.microsoft.com/cppblog/visual-studio-2017-throughput-improvements-and-advice/#compiler-back-end (section "Inline Reader Cache"). So using that cache might improve build time, but may yield worse optimization (https://devblogs.microsoft.com/cppblog/inlining-decisions-in-visual-studio/#we-inline-pre-optimized-code). It might be a good idea to revise the usage (especially N=1).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate where /d2FuncCache1 is applied unconditionally in the php-src build configuration, then read the linked Microsoft compiler documentation about the inline reader cache. Assess whether the setting, especially N=1, should be revised and document the resulting build-time and optimization behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- build-system, performance
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100