Daniel Lemire's blog
lemire.me
Add New Subscription
Post
(required) *
Required; the Post you're subscribing to.
Comment
— All Comments/Replies —
Jun 20th, 2012 2:46 pm — "Robert Morton" writes: Hi Daniel, Thanks for this post, this is[...]
Jun 20th, 2012 7:49 pm — "mars" writes: In your code, yhy is the following not s[...]
Jun 20th, 2012 7:57 pm — "Daniel Lemire" writes: @mars It is perfectly safe in this insta[...]
Jun 20th, 2012 8:46 pm — "Konrad" writes: If you really need the raw speed during [...]
Jun 20th, 2012 9:53 pm — "srean" writes: Was this for g++ ? I would have expected[...]
Jun 20th, 2012 10:45 pm — "Daniel Lemire" writes: @srean I post the code so that you can r[...]
Jun 21st, 2012 5:31 am — "srean" writes: Ah ! I missed the comment on the first l[...]
Jun 21st, 2012 9:03 am — "Konrad" writes: @srean Even without looking at the assem[...]
Jun 21st, 2012 10:27 am — "srean" writes: @Konrad Oh! I had totally forgotten abou[...]
Jun 21st, 2012 3:51 pm — "Daniel Lemire" writes: @srean It is entirely possible that anot[...]
Jun 23rd, 2012 2:38 am — "srean" writes: Sure. In case I gave another impression,[...]
Jun 25th, 2012 3:42 pm — "Ivan" writes: meh, tbh this kind of data is almost use[...]
Jun 25th, 2012 3:53 pm — "Daniel Lemire" writes: @Ivan You think that std::move would mak[...]
Jun 25th, 2012 3:59 pm — "Ivan" writes: Nope, I was talking about: “Another pr[...]
Jun 25th, 2012 4:04 pm — "Ivan" writes: ofc, it only work for temporaries if rec[...]
Oct 16th, 2012 4:06 am — Perhaps a typo: the phrase “Suppose I [...]
Jan 4th, 2013 8:43 pm — "Valrandir" writes: Consider using iterators to access the v[...]
Jan 4th, 2013 10:05 pm — "Daniel Lemire" writes: @Valrandir which means a multiplication [...]
Jan 6th, 2013 8:17 am — "Valrandir" writes: I ran benchmarks using iterators and fou[...]
Jan 28th, 2013 4:06 pm — "Jeff" writes: Since you are using C++11x, you should l[...]
Mar 8th, 2013 2:57 am — "Daniel Lemire" writes: @Jeff I do not think that emplace_back i[...]
Mar 8th, 2013 3:23 pm — "Jeff" writes: I don’t think the person who answered [...]
Mar 8th, 2013 4:38 pm — "Daniel Lemire" writes: @Jeff Well, it is not faster and even sl[...]
Mar 8th, 2013 9:00 pm — "Jeff" writes: I’ve played with your benchmark code, [...]
Mar 8th, 2013 9:12 pm — "Daniel Lemire" writes: @Jeff Please see Why I like the new C++ [...]
Mar 8th, 2013 10:50 pm — "Jeff" writes: I don’t know which GitHub files you’[...]
Mar 9th, 2013 12:10 am — "Daniel Lemire" writes: @Jeff Ok, I was able to get a 10% gain w[...]
Mar 9th, 2013 3:17 am — "Jeff Mitchell" writes: Cool :-) Sounds more like what should ha[...]
Mar 18th, 2013 9:32 am — "sonal" writes: Hello, I am facing a similar issue with [...]
Nov 20th, 2015 6:58 pm — "Jason" writes: Hi, Daniel: I guess you could change a v[...]
Nov 20th, 2015 7:13 pm — "Daniel Lemire" writes: Good point, yes, if you have C++11 support.
Jan 16th, 2016 3:08 pm — "Ashwani Pandey" writes: I started reading this post because of i[...]
Apr 14th, 2017 9:51 am — "ashish" writes: Well!! nice article, but regarding the t[...]
Oct 20th, 2018 2:53 pm — "sudo" writes: It is outside the specifications and cou[...]
Oct 21st, 2018 2:19 pm — "Daniel Lemire" writes: I don’t think the concept of “unsafe[...]
Oct 27th, 2019 7:50 pm — "Gauss" writes: Your sum is: + + + … + + Reordering: +[...]
Jan 2nd, 2020 11:11 pm — "Kurt Guntheroth" writes: look at std::vector::emplace_back(), whi[...]
Jan 3rd, 2020 2:53 pm — "Daniel Lemire" writes: Please see the above comments. I don’t[...]
Jan 5th, 2020 9:32 pm — "Travis Downs" writes: I am a bit surprised that even modern ve[...]
May 13th, 2020 8:05 pm — "András Sz?cs" writes: What about the best of both worlds? Use [...]
May 14th, 2020 3:06 pm — "Daniel Lemire" writes: But that is not legal code, it leaves yo[...]
May 14th, 2020 6:26 pm — "András Sz?cs" writes: Interesting! I found that ‘solution’[...]
Feb 23rd, 2021 1:51 pm — "Nexus Software" writes: It looks like using std::move could be s[...]
Mar 5th, 2021 1:27 pm — "jwakely" writes: It’s not unsafe to reserve the space, [...]
Mar 5th, 2021 1:27 pm — "jwakely" writes: Emplacing an int isn’t going to help a[...]
Email
(required) *
First Name
(required) *
Last Name
Deliver
(required) *
instantly
hourly
daily
weekly
Any value that is not
instantly
results in a digest instead of instant notifications.