Re:A fast HTTP request/response parser for Common Lisp
by Ono-Sendai on Thursday October 30, 2014 @03:29PM
(#8535251)
assert only runs in debug mode anyway.
[ Parent
| on HN ]
Re:A fast HTTP request/response parser for Common Lisp
by haberman on Thursday October 30, 2014 @03:32PM
(#8535278)
It runs unless NDEBUG is defined, which the author did not do according to his methodology. Anyway I looked at the assembly output and strlen() is optimized away.
Re:A fast HTTP request/response parser for Common Lisp
by webreac on Thursday October 30, 2014 @05:30PM
(#8535937)
I really do not like when bad habits are encouraged by the optimizer.
Re:A fast HTTP request/response parser for Common Lisp
by halayli on Thursday October 30, 2014 @04:39PM
(#8535668)
no, that's not correct.
http://pubs.opengroup.org/onlinepubs/009695399/functions/ass...
Re:A fast HTTP request/response parser for Common Lisp
by aidenn0 on Friday October 31, 2014 @02:50AM
(#8537605)
"Forcing a definition of the name NDEBUG, either from the compiler command line or with the preprocessor control statement #define NDEBUG ahead of the #include <assert.h> statement, shall stop assertions from being compiled into the program"