php / php/php-src

Look into /d2FuncCache1 (MSVC)

Open
#17,662 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Category: Build System Feature OS: Windows Status: Needs Triage
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.