Split-up regex tests to please auto-tester#6061
Conversation
|
Thanks for your pull request, @wilzbach! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. |
|
Dmd's memory usage is really getting out of hand. I used to be able to compile my D projects on a low-memory system without any glitches, but these days even trivial programs frequently invoke the kernel OOM killer. Now I'm unable to compile anything but the most trivial of programs on the same low-memory system. Dmd's memory allocation strategy may have been chosen to improve compilation speed, but what good is compilation speed when it doesn't even finish compiling before it gets killed by the kernel? Recompiling dmd with |
|
@quickfur The new ctfe engine by @UplinkCoder is supposed to fix the CTFE problem, but I don't know what happened to it :/ |
|
@quickfur I'd really like to hear more details about this. |
|
@UplinkCoder I'm very interested in a tool that will explain why/where dmd is allocating memory, so that I know where to look. Right now it's just an unhelpful I did try to (very crudely) add memory usage output lines to |
|
@JackStouffer It's still in progress :)
this leaves me with very little time/energy to dedicate to newCTFE. |
|
@UplinkCoder I can't tell you what you should do, but it would be nice if we got newCTFE into a releasable (even if incomplete) state, before we start tackling the big monster that is the template code. I may very well be wrong, but I suspect improving templates may take more effort than finishing newCTFE, but that's just my uninformed opinion. Or maybe the way to go forward is for some of us to start submitting PRs for the newCTFE branch? Would that help? I haven't looked at the code yet, but I am interested enough to dig into it if it will help prod progress along. |
|
@quickfur could you join the #d on irc.freenode.net, I'd like to discuss this if you have a minute. |
|
Sorry, can we do that tomorrow? I'm trying to narrow down another dmd bug right now, and want to stay focused. |
|
sure, I just didn't want to abuse this github pr for a longer conversation. |
You don't need to modify DMD for this, simply use existing tools: A simple preview: |
|
@wilzbach this will not tell you which symbols/modules you are compiling are causing this. |

This error appears more and more frequently on auto-tester:
See also: braddr/d-tester#66
Valgrind:
I guess - in lack of fixing DMD being easy - the only "solution" that we can do for now, is to split-up the tests.
After the split-up:
=== tests.d ====
=== tests2.d ===
Not ideal, but should probably buy us more air on the auto-tester.