diff options
author | Anton Blanchard <anton@samba.org> | 2013-11-04 21:39:20 +1100 |
---|---|---|
committer | Anton Blanchard <anton@samba.org> | 2013-11-04 22:18:23 +1100 |
commit | 67c059c29e1fb0cdeacdd2005f955514d8d1fb34 (patch) | |
tree | a8a6ca67ff1b3f4e311447e82c2d650086aac93c /binutils/defparse.y | |
parent | 88b8e63904fda25c029deaf25d7b4e489b351470 (diff) | |
download | gdb-67c059c29e1fb0cdeacdd2005f955514d8d1fb34.zip gdb-67c059c29e1fb0cdeacdd2005f955514d8d1fb34.tar.gz gdb-67c059c29e1fb0cdeacdd2005f955514d8d1fb34.tar.bz2 |
Improve performance of large restore commands
I noticed a large (100MB) restore took hours to complete. The problem
is memory_xfer_partial repeatedly mallocs and memcpys the entire
100MB buffer for breakpoint shadow handling only to find a small
portion of it is actually written.
The testcase that originally took hours now takes 50 seconds.
gdb/
2013-07-29 Anton Blanchard <anton@samba.org>
* target.c (memory_xfer_partial): Cap write to 4KB.
Diffstat (limited to 'binutils/defparse.y')
0 files changed, 0 insertions, 0 deletions