Ignore:
Timestamp:
Feb 25, 2021, 2:17:07 PM (9 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
ed2cb3c
Parents:
2caed18
Message:

Optim 60% to plaintext webserver by doing 1 write instead of 2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/io/http/worker.cfa

    r2caed18 r187fdb8  
    7272                                if( options.log ) sout | "=== Request for /plaintext ===";
    7373
    74                                 char text[] = "Hello, World!\n";
    75 
    76                                 // Send the header
    77                                 int ret = answer_plain(fd, text, sizeof(text));
     74                                int ret = answer_plaintext(fd);
    7875                                if( ret == -ECONNRESET ) break REQUEST;
    7976
Note: See TracChangeset for help on using the changeset viewer.