summary refs log tree commit diff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2025-07-24 12:21:51 +0300
committerPjotr Prins2026-01-05 11:12:10 +0100
commitf437a4f84b4864808b8de486b0953ace90fd3669 (patch)
treeebb47123961e80b28b8b88dfa094b769b80afdd2
parent436dbfd0f7cbb682e5788bd2e2e43a36442e700f (diff)
downloadgn-gemtext-f437a4f84b4864808b8de486b0953ace90fd3669.tar.gz
Update notes.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r--issues/CI-CD/cd-is-slow.gmi24
1 files changed, 24 insertions, 0 deletions
diff --git a/issues/CI-CD/cd-is-slow.gmi b/issues/CI-CD/cd-is-slow.gmi
index 3085667..ec843c0 100644
--- a/issues/CI-CD/cd-is-slow.gmi
+++ b/issues/CI-CD/cd-is-slow.gmi
@@ -207,3 +207,27 @@ real    0m0.010s
 user    0m0.004s
 sys     0m0.000s
 ```
+
+# Profiling CD
+
+Ran a profiler against a traits page.  See the following:
+
+=> /issues/CI-CD/profiling-flask
+
+## Results/Interpretation
+
+* By fixing gn-guile and gene-alias resolution, times dropped by ~10s.  However, the page takes 37.9s to run.
+
+* Resolving a DNS takes around 4.585s.  We make 7 requests.  Totalling to 32.09.  Typically, a traits page should take 8.79s.  The difference: (- 37.9 32.09) = 5.8s; which explains the slowness:
+
+```
+ ncall     tottime    percall  cumtime  percall  filename:lineno(function)  
+----------------------------------------------------------------------------
+     7  0.00002618  3.741e-05    32.09    4.585  socket.py:938(getaddrinfo) 
+```
+
+* The above is consistent all the analysis I've done across all the profile dumps.
+
+## Possible Mitigations
+
+* Switch over gn-auth.genenetwork.org to localhost.