Alexander Taepper

Results comments of Alexander Taepper

Maybe the numbers for 16 repetitions is also interesting: ``` == frame sizes in bytes (variants.cc) == g++ -O0 (no extra context) A_Current=2736 B_Single=336 C_Scoped=544 D_ClangGccExtension=576 E_Lambda=464 g++ -O0 -DARROW_EXTRA_ERROR_CONTEXT...

`SCOPED` is manually scoping the call to `Big()` on every invocation: ``` #define SCOPED(rexpr) \ { \ auto&& _r = (rexpr); \ ARROW_RETURN_IF_(!_r.ok(), _r.status(), ""); \ obj = std::move(_r).ValueUnsafe(); \...

(I updated the measurements above to include `clang++`)

I pushed the changes I drafted above: https://github.com/apache/arrow/pull/53314/changes/775f7813bf1b04c0a5583b6f1ae5cb83f960c268 feel free to disregard and open another PR if you think this should be handled differently :)

.. another data point that might be of interest: Defining `_DARWIN_C_SOURCE` also fixes this issue: ``` #define _DARWIN_C_SOURCE #include #include int main() {} ```

After looking into this a little bit, can I ask what the original reason was for defining the `_XOPEN_SOURCE` preprocessor macro? As `portability.h` contains many declarations that are definitely needed...

Note the following guidance (also for the `_GNU_SOURCE` preprocessor macro you removed in #693) > You should define these macros by using ‘#define’ preprocessor directives at the top of your...

Great! Thank you! Then it could be noted that the definition of `_POSIX_C_SOURCE` in the same file also violates the gnu manual: > These directives _must_ come before any #include...

`roaring/portability.h` contains the following lines: ``` #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE < 200809L) #undef _POSIX_C_SOURCE #endif #ifndef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 200809L #endif // !(defined(_POSIX_C_SOURCE)) || (_POSIX_C_SOURCE < 200809L) ``` which always...