Re: Qi Symbols parser performance
Seth <[email protected]> Sun, 14 Jan 2018 04:07:50 +0100
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <[email protected]> |
On 13-01-18 19:36, Stephan Menzel wrote: > Qi runs took 2411 nanoseconds > Map runs took 6663 nanoseconds > > I wouldn't have expected this at all. So as usual, one mystery down, > another pops right up ;-) Not important though, I'll chalk it down to MSVC. That one is expected, IMO. And I in fact explained that in the stackoverflow posting (also the "// see Note above" comment): > Note also this shows a custom comparator being used on > the |map<>| approach, just to prove that indeed there's a benefit from > knowing that the map keys are all lower-case. (It's not, in fact, > because it "cached the lowercase" since it's only used once!) ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Spirit-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/spirit-general