[libcamera-devel] libcamera built with -O0? (& swisp performance)

Pavel Machek pavel at ucw.cz
Thu Dec 14 20:16:47 CET 2023


Hi!

Is libcamera built with -O0 for debug builds? That would certainly
explain bad swisp performance.

Normal build:

-c c++ -Isrc/libcamera/libcamera.so.0.1.0.p -Isrc/libcamera
 -I../src/libcamera -Iinclude -I../include
...
 -O0 -g -Wshadow -include /my/libcamera/build/config.h -fPIC
 -DYAML_DECLARE_STATIC -D_CRT_SECURE_NO_WARNINGS
 src/libcamera/libcamera.so.0.1.0.p/pipeline_rpi_vc4_vc4.cpp.o.d -o
 src/libcamera/libcamera.so.0.1.0.p/pipeline_rpi_vc4_vc4.cpp.o -c
 ../src/libcamera/pipeline/rpi/vc4/vc4.cpp

meson setup --buildtype=release -Dpipelines=simple/simple -Dipas=simple/simple build/

Gets libraries built with -O3, AFAICT.

Bryan, for the performance regression, can you try the
buildtype=release? Code will not perform well at -O0.

Thanks and best regards,
							Pavel
-- 
People of Russia, stop Putin before his war on Ukraine escalates.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20231214/88ef9fb0/attachment.sig>


More information about the libcamera-devel mailing list