← Back to Pull requests

build: enable pie on linux #67386

Closed
unknown closed this pull request without merging on Nov 15, 2026 22:00 UTC
View on GitHub
unknown unknown commented on Nov 10, 2026 16:11 UTC
Author

Refs: https://github.com/nodejs/node/issues/66951

In my testing on a linux RHEL 8 host, built with gcc (not clang as in our release toolchain), it shows no significant performance cost either on startup time, binary size, or runtime cpp heavy path:

| | non-PIE | PIE |
|---|---|---|
| node -e 0 median, run 1 | 24.12 ms | 25.72 ms (+1.60 ms, +6.6%) |
| node -e 0 median, run 2 | 23.64 ms | 25.04 ms (+1.40 ms, +5.9%) |
| .rela.dyn | 3.5 KB | 2.65 MB |
| .data.rel.ro | 97 KB | 1.38 MB |
| .text | 56.7 MB | 57.7 MB (+1.7%) |
| file size (not stripped) | 146.0 MB | 149.0 MB (+2.1%) |

and with benchmark/compare.js --runs 30 --set inLen=1024 --set chunkLen=256 --set CPUSET=3 string_decoder:

| encoding | PIE vs non-PIE |
|---|---|
| ascii | −1.71% () |
| utf8 | −0.39% |
| base64-utf8 | +3.48% (
) |
| base64-ascii | +3.29% (
) |
| utf16le | +1.26% |

with string_decoder/string-decoder-create.js as a control group, mostly JS object creation, n=25000000, it even seems slightly faster with confidence:

| encoding | PIE vs non-PIE |
|---|---|
| ascii | +4.85% (
) |
| utf8 | +5.54% (
) |
| utf-8 | +5.15% (
) |
| base64 | +3.77% (
) |
| ucs2 | +3.24% (
) |
| UTF-8 | +3.02% () |
| AscII | +3.08% (
) |
| UTF-16LE | +5.22% (***) |

Diff: 162 lines (+121 / -41) across 2 files Reviewer: gurgunday Review duration: 7549m
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 162 lines diff across 2 files
0.35
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.305
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #67386"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 34.9% (LOW) · Higher = larger blast radius
34.9%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 13.8% · Safe to merge
13.8%
Repository