Minify HTML to Reduce Load time and Data
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Ambito
- backend, performance
Direzione di ricerca
Inizia dalla route /spring_evals e controlla lo stato di #169 prima di modificare qualsiasi cosa, poiché l’autore dell’issue intendeva aspettare che venisse risolta. Valuta lì l’integrazione di flask-optimize, verificando che la risposta rimanga corretta e che le sue dimensioni e il tempo di caricamento migliorino rispetto alla baseline riportata di 403 KB e sei secondi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Why?
Currently the HTML returned from conditional is large and riddled with blank newlines. In fact if you go to /spring_evals the page request is 403 kb! This affects load time, and can affect users data usage when visiting the page on mobile data. Conditional is slow, mostly because of the LDAP calls, but we can make an effort to reduce load times on the client when possible.
The Fix
We can use a library called flask-optimize to deal with this at each request. When attaching it to that same spring_evals route, it was reduced from 403 kb to 9.5kb and load time was reduced by a full 6 seconds!
Downsides
We add a new dependency, and may have to deal with adding a few s. Honestly minimal imo
Okay, so just fix it
I will. As soon as #169 is merged. It's a separate change and I don't want to group them together. There's also a chance for a conflict if I submit a second PR. I'll just wait for the sake of avoiding such conflicts
- Lingua principale
- Python
- Stelle
- 12
- Fork
- 40
- Merge medio
- 1g 2h
- PR unite (30g)
- 2
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ComputerScienceHouse/conditional
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
-
good first issue
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
-
enhancement feature request good first issue
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
Tutte le issue di ComputerScienceHouse/conditional
Issue simili
-
Add: hunch Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
AbdelStark/awesome-typesafe#104 ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
DiamondLightSource/dodal#2211 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
openml/openml-python#1749 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
sipyourdrink-ltd/bernstein#6191 ·