aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/layout/error.xcf
diff options
context:
space:
mode:
authorPeter Wu2014-07-26 01:24:22 +0200
committerPim van den Berg2014-08-02 12:29:42 +0200
commit5a2357e551abe61cda4bf22019ea229d8ed0fb02 (patch)
tree27bfe1ec2dbe70cf62aa7c4178a2bc170fa74183 /layout/error.xcf
parentjsrrdgraph: binaryXHR: jshint style fixes (diff)
downloadapt-panopticon_cgp-5a2357e551abe61cda4bf22019ea229d8ed0fb02.zip
apt-panopticon_cgp-5a2357e551abe61cda4bf22019ea229d8ed0fb02.tar.gz
apt-panopticon_cgp-5a2357e551abe61cda4bf22019ea229d8ed0fb02.tar.bz2
apt-panopticon_cgp-5a2357e551abe61cda4bf22019ea229d8ed0fb02.tar.xz
jsrrdgraph: Performance fix
commit 2a74a333ff143499b465234f0395a4aad7bdaa78 ("Upgrade to javascriptrrd ver 1.1.1") converted getByteAt calls to a getEndianByteAt call, but this also introduced a branch operation. Since endianess is dependent on the file, we can move the switch_endian check outside the function. Performance improved from 0.148ms (n=336k) to .039ms (n=384k) which translates to about 30 seconds!
Diffstat (limited to 'layout/error.xcf')
0 files changed, 0 insertions, 0 deletions