aboutsummaryrefslogtreecommitdiffstats
path: root/sst28sf040.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-11-25 16:58:17 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-11-25 16:58:17 +0000
commitb7e01457d12b64d98b0396f95e46489c02209982 (patch)
tree341176081702d03d5bfc3fc5eafbeea6618f5e0c /sst28sf040.c
parent2925d6f11d1f7463385baeda6088b31d06be5714 (diff)
downloadflashrom-b7e01457d12b64d98b0396f95e46489c02209982.tar.gz
flashrom-b7e01457d12b64d98b0396f95e46489c02209982.tar.bz2
flashrom-b7e01457d12b64d98b0396f95e46489c02209982.zip
Reduce realloc syscall overhead for FT2232 and bitbang
FT2232 ran realloc() for every executed command. Start with a big enough buffer and don't touch buffer size unless it needs to grow. Bitbang was slightly better: It only ran realloc() if buffer size changed. Still, the solution above improves performance and reliability. Corresponding to flashrom svn r780. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Sean Nelson <audiohacked@gmail.com>
Diffstat (limited to 'sst28sf040.c')
0 files changed, 0 insertions, 0 deletions