Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922080 - media-gfx/imagemagick add tcmalloc and jemalloc USE flags
Summary: media-gfx/imagemagick add tcmalloc and jemalloc USE flags
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Codec Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-14 08:15 UTC by Forza
Modified: 2024-01-16 18:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patched imagemagick-7.1.1.25.ebuild (file_922080.txt,1.41 KB, text/plain)
2024-01-14 08:15 UTC, Forza
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Forza 2024-01-14 08:15:54 UTC
Created attachment 882221 [details]
Patched imagemagick-7.1.1.25.ebuild

Imagemagic supports building with 'jemalloc' and with 'tcmalloc'. The https://imagemagick.org/script/openmp.php page specifically mentions to use 'tcmalloc' for extra performance.

I've tested both jemalloc and tcmalloc on my AMD64 (Ryzen 5600G) system with no issues.

Configure output:


==============================================================================
ImageMagick 7.1.1-25 is configured as follows. Verify that this configuration
matches your expectations.
Host system type: x86_64-pc-linux-gnu
Build system type: x86_64-pc-linux-gnu
                    Option                              Value
------------------------------------------------------------------------------
Shared libraries    --enable-shared=yes                 yes
Static libraries    --enable-static=no                  no
Build utilities     --with-utilities=yes                yes
Module support      --with-modules=yes                  yes
GNU ld              --with-gnu-ld=yes                   yes
OpenMP              --enable-openmp=yes                 yes
Security policy     --with-security-policy=open         open
Quantum depth       --with-quantum-depth=32             32
Channel mask depth  --enable-64bit-channel-masks=no     32
High Dynamic Range Imagery
                    --enable-hdri=yes                   yes
Install documentation:                                  yes
Memory allocation library:
  JEMalloc          --with-jemalloc=no                  no
  MTMalloc          --with-mtmalloc=no                  no
  TCMalloc          --with-tcmalloc=yes                 yes
  UMem              --with-umem=no                      no
Delegate library configuration:
  BZLIB             --with-bzlib=yes                    yes
  Autotrace         --with-autotrace=no                 no
  DJVU              --with-djvu=no                      no
  DPS               --with-dps=yes                      no
  FFTW              --with-fftw=yes                     yes
  FLIF              --with-flif=no                      no
  FlashPIX          --with-fpx=no                       no
  FontConfig        --with-fontconfig=yes               yes
  FreeType          --with-freetype=yes                 yes
  Ghostscript lib   --with-gslib=yes                    yes
  Graphviz          --with-gvc=yes                      yes
  HEIC              --with-heic=yes                     yes
  JBIG              --with-jbig=yes                     yes
  JPEG v1           --with-jpeg=yes                     yes
  JPEG XL           --with-jxl=yes                      yes
  DMR               --with-dmr=yes                      no
  LCMS              --with-lcms=yes                     yes
  LQR               --with-lqr=yes                      yes
  LTDL              --with-ltdl=yes                     yes
  LZMA              --with-lzma=yes                     yes
  Magick++          --with-magick-plus-plus=yes         yes
  OpenEXR           --with-openexr=no                   no
  OpenJP2           --with-openjp2=yes                  yes
  PANGO             --with-pango=no                     no
  PERL              --with-perl=no                      no
  PNG               --with-png=yes                      yes
  RAQM              --with-raqm=yes                     no
  RAW               --with-raw=yes                      yes
  RSVG              --with-rsvg=yes                     yes
  TIFF              --with-tiff=yes                     yes
  WEBP              --with-webp=yes                     yes
  WMF               --with-wmf=no                       no
  X11               --with-x=no                         no
  XML               --with-xml=yes                      yes
  ZIP               --with-zip=yes                      yes
  ZLIB              --with-zlib=yes                     yes
  ZSTD              --with-zstd=yes                     yes
Delegate program configuration:
  GhostPCL          None                                pcl6 (unknown)
  GhostXPS          None                                gxps (unknown)
  Ghostscript       None                                gs (10.02.1)
Font configuration:
  Apple fonts       --with-apple-font-dir=default
  Dejavu fonts      --with-dejavu-font-dir=/usr/share/fonts/dejavu      /usr/share/fonts/dejavu/
  Ghostscript fonts --with-gs-font-dir=/usr/share/fonts/urw-fonts               /usr/share/fonts/urw-fonts/
  URW-base35 fonts  --with-urw-base35-font-dir=default  none
  Windows fonts     --with-windows-font-dir=no  no/
X11 configuration:
  X_CFLAGS          =
  X_PRE_LIBS        =
  X_LIBS            =
  X_EXTRA_LIBS      =
Options used to compile and link:
  PREFIX            = /usr
  EXEC-PREFIX       = /usr
  VERSION           = 7.1.1-25
  CC                = x86_64-pc-linux-gnu-gcc
  CFLAGS            = -I/usr/include/libxml2 -I/usr/include/webp -I/usr/include/webp -I/usr/include/cairo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/librsvg-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -pthread -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/pixman-1 -I/usr/include/libraw -I/usr/include/libpng16 -I/usr/include/lqr-1 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/openjpeg-2.5 -I/usr/include/graphviz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fopenmp -Wall -O3 -march=native -pipe -flto=8 -fexceptions -pthread -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=32 -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -DMAGICKCORE_CHANNEL_MASK_DEPTH=32
  CPPFLAGS          = -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=32 -DMAGICKCORE_CHANNEL_MASK_DEPTH=32
  PCFLAGS           =
  DEFS              = -DHAVE_CONFIG_H
  LDFLAGS           = -Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,-flto
  LIBS              = -llcms2 -llcms2_fast_float -llcms2_threaded -lfreetype -llqr-1 -lglib-2.0 -lfftw3 -lxml2 -lfontconfig -lfreetype -lbz2 -lz -lzip -lltdl -lm -L/usr/lib64/nvidia -L/usr/lib/nvidia -lOpenCL -lpthread -ltcmalloc_minimal -lgomp
  CXX               = x86_64-pc-linux-gnu-g++
  CXXFLAGS          = -O3 -march=native -pipe -flto=8 -pthread
  FEATURES          = Channel-masks(32-bit) Cipher DPC HDRI Modules OpenCL OpenMP
  DELEGATES         = bzlib cairo fftw fontconfig freetype gslib heic jbig jng jp2 jpeg jxl lcms lqr lzma png ps raw rsvg tiff video webp xml zip zlib zstd
==============================================================================