The history of SQUID_INLINE

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Wed, 21 Jan 2009 10:13:14 +0100

Saw Alex question about SQUID_INLINE in the IRC logs.

Yes, SQUID_INLINE can be removed from the code base if you like. It's
purpose is to optimize --disable-inline.

The simple method of always having inlines in the header with the inline
keyword has some issues:
  - Code gets duplicated in each compile unit, increasing both compile
time and binary size.
  - Some versions of GCC do not include inline functions at all
depending on the optimization level & flags, resulting in link failure.

The first is the primary reason for SQUID_INLINE.

Regards
Henrik
Received on Wed Jan 21 2009 - 09:14:24 MST

This archive was generated by hypermail 2.2.0 : Wed Jan 21 2009 - 12:00:26 MST