• Show log

    Commit

  • Hash : fd0ce993
    Author : Pierce Lopez
    Date : 2021-09-16T23:21:26

    buffer: do not round up allocation for reference-type chain objects
    
    Skip rounding up memory allocations for:
      * evbuffer_add_reference()
      * evbuffer_add_buffer_reference()
      * evbuffer_add_file_segment()
    
    These chain objects only store small structs with references to
    other things, and these small structs do not themselves grow, so
    bumping up the allocation to MIN_BUFFER_SIZE (512 bytes) is wasteful.