cfeck added a comment.

  That looks clever. Since CpuInfoBufSize is a static variable, it will 
remember the last used size and not reallocate again (unless you plug in new 
CPUs).
  
  Is realloc() an option? It should help the case where the library can 
actually grow the buffer without an alloc/copy/free cycle.

REVISION DETAIL
  https://phabricator.kde.org/D27362

To: jakobkummerow, davidedmundson, ahiemstra
Cc: ahiemstra, cfeck, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, 
jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, 
himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart

Reply via email to