5 Commits
Author SHA1 Message Date
gigirassy 5d09e75704 Update .forgejo/workflows/pgo-binary.yml 2026-08-19 22:42:26 +02:00
gigirassy 20b370b45c Update .forgejo/workflows/pgo-binary.yml 2026-08-19 01:14:30 +02:00
gigirassy 322536168c revert 92aca35c0a
revert even more pgo
2026-08-19 01:04:12 +02:00
gigirassy 0e4d9dbd86 silence warnings 2026-08-19 01:00:23 +02:00
gigirassy 92aca35c0a even more pgo 2026-08-19 00:59:15 +02:00
2 changed files with 29 additions and 13 deletions
+28 -11
View File
@@ -93,22 +93,38 @@ jobs:
set -eu set -eu
SITEMAP_URL='https://riptide-pgo.blitzw.in/sitemaps/sitemap.xml' SITEMAP_URL='https://riptide-pgo.blitzw.in/sitemaps/sitemap.xml'
SITEMAP_URL_2='https://riptide-pgo.blitzw.in/sitemaps2/sitemap.xml'
printf 'Training with sitemap: <%s>\n' "$SITEMAP_URL" printf 'Training round 1 with sitemap: <%s>\n' "$SITEMAP_URL"
timeout 10m \ timeout 10m \
/tmp/riptide-pgo/riptide \ /tmp/riptide-pgo/riptide \
--sitemap "$SITEMAP_URL" \ --sitemap "$SITEMAP_URL" \
--output /tmp/pgo-urls.txt \ --output /tmp/pgo-urls.txt \
--scheme https \ --scheme https \
--workers 16 \ --workers 16 \
--timeout-secs 30 --timeout-secs 30
test -s /tmp/pgo-urls.txt test -s /tmp/pgo-urls.txt
echo "Training input:" echo "Training round 1 input:"
wc -l /tmp/pgo-urls.txt wc -l /tmp/pgo-urls.txt
printf 'Training round 2 with sitemap: <%s>\n' "$SITEMAP_URL_2"
timeout 10m \
/tmp/riptide-pgo/riptide \
--sitemap "$SITEMAP_URL_2" \
--output /tmp/pgo-urls-2.txt \
--scheme https \
--workers 16 \
--timeout-secs 30
test -s /tmp/pgo-urls-2.txt
echo "Training round 2 input:"
wc -l /tmp/pgo-urls-2.txt
echo "Generated profiles:" echo "Generated profiles:"
find /tmp/riptide-pgo/profiles \ find /tmp/riptide-pgo/profiles \
-name '*.profraw' \ -name '*.profraw' \
@@ -120,9 +136,9 @@ jobs:
-name '*.profraw' \ -name '*.profraw' \
-type f \ -type f \
-print -quit -print -quit
)" )"
- name: Merge PGO profiles - name: Merge Round 1 of PGO profiles
shell: sh shell: sh
run: | run: |
set -eu set -eu
@@ -135,7 +151,8 @@ jobs:
test -s /tmp/riptide-pgo.profdata test -s /tmp/riptide-pgo.profdata
- name: Build optimized Linux binary
- name: Build finalized Linux binary
shell: sh shell: sh
run: | run: |
set -eu set -eu
+1 -2
View File
@@ -2,7 +2,6 @@ use std::{
collections::{HashSet, VecDeque}, collections::{HashSet, VecDeque},
fs, fs,
io::Read, io::Read,
sync::Arc,
time::Duration, time::Duration,
}; };
@@ -11,7 +10,7 @@ use clap::{Parser, ValueEnum};
use flate2::read::GzDecoder; use flate2::read::GzDecoder;
use futures::stream::{self, StreamExt}; use futures::stream::{self, StreamExt};
use mimalloc::MiMalloc; use mimalloc::MiMalloc;
use reqwest::{header, Client}; use reqwest::{Client};
use roxmltree::Document; use roxmltree::Document;
use tokio::time::timeout; use tokio::time::timeout;
use url::Url; use url::Url;