Re: Initialize ngx_buf_t in ngx_create_temp_buf()

2014-08-08 Thread Maxim Dounin
Hello! On Fri, Aug 08, 2014 at 02:56:12AM -0400, crespin wrote: > Hello, > > I don't understand why b->last is used to initialize b->end. > Why it's not : > b->end = b->start + size; There is no real difference, though current code produces 1 less assembly instruction at least on gcc 4.2 w

Initialize ngx_buf_t in ngx_create_temp_buf()

2014-08-07 Thread crespin
Hello, I don't understand why b->last is used to initialize b->end. Why it's not : b->end = b->start + size; Regards, yves # HG changeset patch # User Yves Crespin # Date 1407480933 -7200 # Node ID 74265a0edba677c967f532de789a4589436aa5fb # Parent a62fffc16af816612a4acf34c7a4781f454fa5d1 n