diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2012-02-23 18:05:12 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2012-02-23 18:05:12 +0000 |
commit | f72b184e3ec8161db914ee0a4cdc02e0216909c1 (patch) | |
tree | 6ea0c88b1b133e360c80edaaad95aea3c6720ff6 /WHATS_NEW_DM | |
parent | b6c5ea358ebb0efc144dbb625af9bec4deca2333 (diff) | |
download | lvm2-f72b184e3ec8161db914ee0a4cdc02e0216909c1.tar.gz lvm2-f72b184e3ec8161db914ee0a4cdc02e0216909c1.tar.xz lvm2-f72b184e3ec8161db914ee0a4cdc02e0216909c1.zip |
Limit number of mem allocs and copies
If we have good enough glibc to return number of needed chars, do not
loop try to reach good size, but use this size directly for allocation,
saving also last strdup.
Since now we start with 16 bytes - skip buffer realloc for shorter string.
Diffstat (limited to 'WHATS_NEW_DM')
-rw-r--r-- | WHATS_NEW_DM | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index 8f2071ad..cc4e79fc 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.02.72 - ==================================== + Avoid memory reallocation for dm_asprintf. Version 1.02.71 - 20th February 2012 ==================================== |