These are chat archives for boostorg/hana

2nd
Mar 2016
Maik Klein
@MaikKlein
Mar 02 2016 00:24
I just created a small framework that generates some code at runtime into a string, creates a file, compiles the created file and measures the time.
filtering 100k elements takes 100s
while 10k takes 1.6s
Jason Rice
@ricejasonf
Mar 02 2016 00:31
that's with pregenerating the code before the benchmark?
Maik Klein
@MaikKlein
Mar 02 2016 00:31
I don't even know why it takes that long for 100k elements, I still have enough ram left.
yeah
Actually c++ is surprisingly fast
Jason Rice
@ricejasonf
Mar 02 2016 00:36
did you try the c++ version with the pregenerated code? I bet std::make_range is the slowdown
Maik Klein
@MaikKlein
Mar 02 2016 00:37
no I haven't compiled the c++ version yet, I just saw your timings.
Jason Rice
@ricejasonf
Mar 02 2016 00:41
I mean std::make_index_sequence
If you used std::index_sequence<0, 1, 2, ...>...
It would be interesting to see where it breaks. :P
Maik Klein
@MaikKlein
Mar 02 2016 00:45
I am currently only generating D code
500k elements is still running since a few minutes, my ram is almost gone :d
Jason Rice
@ricejasonf
Mar 02 2016 00:58
I tried that with 1M and it still craps out after 45s with the same error messages. It must be a limit on variadic templates.
which sounds reasonable enough :D
Maik Klein
@MaikKlein
Mar 02 2016 01:17
@ricejasonf btw did you subtract the baseline from the timings that you have posted before?
Jason Rice
@ricejasonf
Mar 02 2016 01:18
no.. would that be just including the files?
Maik Klein
@MaikKlein
Mar 02 2016 01:19
yeah probably, I am still baffled that it compiled so fast, I try to compile it myself later.
Jason Rice
@ricejasonf
Mar 02 2016 01:19
baseline (including the function definitions) is about 0.17s
Jason Rice
@ricejasonf
Mar 02 2016 04:48
@ldionne It kind of looks like map inserts improved too. Is that right?
at least the gap looks narrower