Skip to content
Snippets Groups Projects
  1. Sep 13, 2010
  2. Aug 08, 2010
    • Mike Frysinger's avatar
      print_buffer: optimize & shrink · 64419e47
      Mike Frysinger authored
      
      Applying a little creative format string allows us to shrink the initial
      data read & display loop by only calling printf once.  Re-using the local
      data buffer to generate the string we want to display then allows us to
      output everything with just one printf call instead of multiple calls to
      the putc function.
      
      The local stack buffer needs increasing by 1 byte, but the resulting code
      shrink and speed up is worth it I think.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      64419e47
  3. May 17, 2010
  4. May 05, 2010
  5. Apr 13, 2010
  6. Jul 09, 2008
  7. Jun 11, 2008
  8. Feb 20, 2007
  9. Jul 01, 2003
  10. Sep 08, 2002
  11. Aug 27, 2002
  12. Dec 28, 2000
  13. Dec 14, 2000
  14. Nov 12, 2000
Loading