Skip to content

cmake: clean unreferenced functions from OpenCV modules too - #14071

Merged
opencv-pushbot merged 1 commit into
opencv:3.4from
alalek:cmake_remove_unreferenced_functions
Mar 15, 2019
Merged

opencv-pushbot merged 1 commit into
opencv:3.4from
alalek:cmake_remove_unreferenced_functions

Conversation

@alalek

@alalek alalek commented Mar 15, 2019 •

Copy link
Copy Markdown
Member

remove unused symbols from 3rdparty static libraries

Details are below (Linux):

With BUILD_PNG=ON (some functions are not used in imgcodecs).

Before:

-rwxrwxr-x 1 alalek alalek 18889344 Mar 15 19:00 libopencv_core.so.3.4.6
-rwxrwxr-x 1 alalek alalek  9180704 Mar 15 19:00 libopencv_imgcodecs.so.3.4.6
-rwxrwxr-x 1 alalek alalek 49164072 Mar 15 19:00 libopencv_imgproc.so.3.4.6

After:

-rwxrwxr-x 1 alalek alalek 18824224 Mar 15 19:01 libopencv_core.so.3.4.6
-rwxrwxr-x 1 alalek alalek  8999344 Mar 15 19:01 libopencv_imgcodecs.so.3.4.6
-rwxrwxr-x 1 alalek alalek 49135832 Mar 15 19:01 libopencv_imgproc.so.3.4.6

DNN module (static protobuf is used):

-rwxrwxr-x 1 alalek alalek 12747136 Mar 15 19:03 libopencv_dnn.so.3.4.6
vs
-rwxrwxr-x 1 alalek alalek 11961048 Mar 15 19:03 libopencv_dnn.so.3.4.6

@mshabunin mshabunin self-assigned this Mar 15, 2019
@opencv-pushbot
opencv-pushbot merged commit ccbc16f into opencv:3.4 Mar 15, 2019
@alalek alalek mentioned this pull request Mar 15, 2019
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants