reimandlab / ActiveDriverDB

ActiveDriverDB
GNU Lesser General Public License v2.1
12 stars 3 forks source link

Gzip json responses to speed up view loading #153

Closed krassowski closed 3 years ago

krassowski commented 5 years ago

This should be super-easy and provide a tangible benefit. I could use either:

krassowski commented 3 years ago

Test results, sequence view:

no compression gzip 3 gzip 5 gzip 7
TP53 ClinVar size 2.5 MB 122 kB 105 kB 86.8 kB
TP53 ClinVar avg. time 12.57 s 9.75 s 9.55 s 9.50 s
TP53 TCGA size 936 kB 58.1 kB 51.6 kB 44.3 kB
TP53 TCGA avg. time 12.07 s 7.10 s 6.93 s 6.92 s
TP53 ClinVar times 12.57 s 10.96 s, 8.89 s, 9.41 s 10.23 s, 9.31 s, 9.11 s 10.24 s, 9.19 s, 9.08 s
TP53 TCGA times 12.07 s 7.22 s, 7.14 s, 6.96 s 6.95 s, 6.95 s, 6.89 s 6.83 s, 6.98 s, 6.96 s

Tested on a network with ~3.5 Mb/s. I think it is reasonable to go with gzip 7 but would not expect a compression level higher than seven to bring any tangible benefit.

For network view: