[
https://issues.apache.org/jira/browse/ARROW-16886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17561226#comment-17561226
]
Jimmy Lu commented on ARROW-16886:
----------------------------------
[~apitrou] I did not measure it personally, it is a policy forced by my company
(Meta), and they claim the performance gain is from several percent to 10%.
> [C++] Add option to disable PIC
> -------------------------------
>
> Key: ARROW-16886
> URL: https://issues.apache.org/jira/browse/ARROW-16886
> Project: Apache Arrow
> Issue Type: New Feature
> Components: C++
> Affects Versions: 8.0.0
> Reporter: Jimmy Lu
> Assignee: Kouhei Sutou
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 50m
> Remaining Estimate: 0h
>
> Currently {{CMAKE_POSITION_INDEPENEDNT_CODE}} is always set to {{ON}} in
> cmake. In some use cases we want to build non-PIC static lib for performance
> reason, it would be nice to have an option to disable PIC in the build.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)