Re: [Boost-users] [mpl::map] generating map for 150 types
Dave,
Sorry for my misleading words, the meaning was: As more as I can
pre-calculate code at compile time (means slower compilation times) and
substitute runtime calculation the more speed I get at runtime. Hope that
was what you were meaning in the MPL book.
I also understand, that I can bloat compiler with unnecessary calculations
without any gain in speed, but my initial sentence was a thank to you an
Aleksey for such a nice lib, which can boost the runtime speed if used
properly ;)
Thanks,
Ovanes.
-----Original Message-----
From: David Abrahams [mailto:dave@boost-consulting.com]
Sent: Saturday, November 04, 2006 7:18 PM
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] [mpl::map] generating map for 150 types
"Ovanes Markarian"
Aleksey,
Many thanks for your detailed reply. I think the second scenario with pre-generated headers convinces me more, since our compilation times are not optimal at all :(. But as you stated in the book: more work for compiler means less work at runtime.
In this case you won't get any runtime speedups by using the method that's slower at compile time.
These were not exactly the words, but I can remember the meaning.
I'm not sure you got the meaning exactly right either ;-) -- Dave Abrahams Boost Consulting www.boost-consulting.com _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
"Ovanes Markarian"
Dave,
Sorry for my misleading words, the meaning was: As more as I can pre-calculate code at compile time (means slower compilation times) and substitute runtime calculation the more speed I get at runtime. Hope that was what you were meaning in the MPL book.
I think that's in the right neighborhood. Sorry if I'm too literal-minded.
I also understand, that I can bloat compiler with unnecessary calculations without any gain in speed, but my initial sentence was a thank to you an Aleksey for such a nice lib, which can boost the runtime speed if used properly ;)
Thanks,
You're welcome. -- Dave Abrahams Boost Consulting www.boost-consulting.com
participants (2)
-
David Abrahams
-
Ovanes Markarian