Replies: 4 comments 3 replies
-
Link time optimization In
But there is The two versions of vim used with these tests are created using
surprising improvement
It's 4% faster for regular vim; and 8% faster with link optimized vim. Notes |
Beta Was this translation helpful? Give feedback.
-
Size stats (forgot to include)
with -flto
Around 8% bigger |
Beta Was this translation helpful? Give feedback.
-
I feel that this should just be relaxed. These days the reason why |
Beta Was this translation helpful? Give feedback.
-
Issue #14012 turns out to be about -flto problems. And see #14012 (comment) |
Beta Was this translation helpful? Give feedback.
-
Putting together a PR with a simple macro
But it's hard to use because it references
x
three times.An inline function would be best, but
:help style-compiler
explicitly saysdo not use
inline
and "let the optimizer do its work".If I've got
in a *.c file, how can this be inlined in another *.c file?
Looking at gcc docs, I see a
-flto
optionBut I don't see this used anywhere in makefiles.
Could do "static int func() {...}" in a header, that might work, but haven't
seen that pattern around (which doesn't mean much given my unfamiliarity with
the vim sources).
I suppose it doesn't really matter, but I dislike adding function call overhead to something so simple.
Beta Was this translation helpful? Give feedback.
All reactions