diff options
author | Peter Wu | 2014-07-26 01:24:22 +0200 |
---|---|---|
committer | Pim van den Berg | 2014-08-02 12:29:42 +0200 |
commit | 5a2357e551abe61cda4bf22019ea229d8ed0fb02 (patch) | |
tree | 27bfe1ec2dbe70cf62aa7c4178a2bc170fa74183 /layout/error.xcf | |
parent | jsrrdgraph: binaryXHR: jshint style fixes (diff) | |
download | apt-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