Skip to content

Commit

Permalink
pango: Enable PGO for a ~12% improvement
Browse files Browse the repository at this point in the history
**Benchmarks**

1:
  File: https://github.com/joebonrichie/benchmarks/blob/master/pango-layout-profile.c
  Setup: gcc -o pango-layout-profile pango-layout-profile.c -Ofast `pkg-config --cflags --libs gtk+-3.0
  Test: hyperfine "./pango-layout-profile"
  Results: Before - 11.434124s | After - 10.247857s
2:
  File - https://github.com/joebonrichie/benchmarks/blob/master/pango-benchmark/pango-language-profile.c
  Setup: gcc -o pango-language-profile pango-language-profile.c -Ofast `pkg-config --cflags --libs gtk+-3.0`
  Test: hyperfine "./pango-language-profile -l uk"
  Results: Before - 8.066s | After: 7.066s
  • Loading branch information
joebonrichie committed Mar 25, 2024
1 parent bdd72b4 commit b13be2a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
5 changes: 5 additions & 0 deletions packages/p/pango/abi_used_symbols
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ libc.so.6:fwrite
libc.so.6:getenv
libc.so.6:localeconv
libc.so.6:malloc
libc.so.6:memcmp
libc.so.6:memcpy
libc.so.6:memmove
libc.so.6:memset
Expand Down Expand Up @@ -579,6 +580,10 @@ libharfbuzz.so.0:hb_shape
libharfbuzz.so.0:hb_tag_to_string
libharfbuzz.so.0:hb_variation_from_string
libm.so.6:atan2
libm.so.6:ceil
libm.so.6:ceilf
libm.so.6:cos
libm.so.6:floor
libm.so.6:sincos
libm.so.6:sqrt
libm.so.6:tan
3 changes: 3 additions & 0 deletions packages/p/pango/abi_used_symbols32
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ libc.so.6:funlockfile
libc.so.6:getenv
libc.so.6:localeconv
libc.so.6:malloc
libc.so.6:memcmp
libc.so.6:memcpy
libc.so.6:memmove
libc.so.6:memset
Expand Down Expand Up @@ -492,7 +493,9 @@ libharfbuzz.so.0:hb_tag_to_string
libharfbuzz.so.0:hb_variation_from_string
libm.so.6:atan2
libm.so.6:ceil
libm.so.6:ceilf
libm.so.6:cos
libm.so.6:floor
libm.so.6:sincos
libm.so.6:sqrt
libm.so.6:tan
6 changes: 4 additions & 2 deletions packages/p/pango/package.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name : pango
version : 1.51.2
release : 57
release : 58
source :
- https://gitlab.gnome.org/GNOME/pango/-/archive/1.51.2/pango-1.51.2.tar.gz : 82b4c5232e448865865e595008b6aef2481032c898d8bbfc60fd36b680585d75
homepage : http://www.pango.org
Expand Down Expand Up @@ -36,7 +36,9 @@ setup : |
%meson_configure -Dgtk_doc=false -Dintrospection=$build_gobject
build : |
%ninja_build
profile : |
%ninja_check || :
install : |
%ninja_install
check : |
%ninja check || :
%ninja_check || :
12 changes: 6 additions & 6 deletions packages/p/pango/pspec_x86_64.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
</Description>
<PartOf>emul32</PartOf>
<RuntimeDependencies>
<Dependency release="57">pango</Dependency>
<Dependency release="58">pango</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32/libpango-1.0.so.0</Path>
Expand All @@ -72,8 +72,8 @@
</Description>
<PartOf>programming.devel</PartOf>
<RuntimeDependencies>
<Dependency release="57">pango-32bit</Dependency>
<Dependency release="57">pango-devel</Dependency>
<Dependency release="58">pango-32bit</Dependency>
<Dependency release="58">pango-devel</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32/libpango-1.0.so</Path>
Expand All @@ -95,7 +95,7 @@
</Description>
<PartOf>programming.devel</PartOf>
<RuntimeDependencies>
<Dependency release="57">pango</Dependency>
<Dependency release="58">pango</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include/pango-1.0/pango/pango-attributes.h</Path>
Expand Down Expand Up @@ -149,8 +149,8 @@
</Files>
</Package>
<History>
<Update release="57">
<Date>2024-02-13</Date>
<Update release="58">
<Date>2024-03-25</Date>
<Version>1.51.2</Version>
<Comment>Packaging update</Comment>
<Name>Joey Riches</Name>
Expand Down

0 comments on commit b13be2a

Please sign in to comment.