Re:D compilation is too slow and I am forking the compiler
by lyrachord on Wednesday November 21, 2018 @07:27AM
(#18502150)
D compilation: Not only slow but also high usage of memory. f.e. a simple program with searching and regex eats 2-3 G memory. sigh!
[ Parent
| on HN ]
Re:D compilation is too slow and I am forking the compiler
by faissaloo on Wednesday November 21, 2018 @12:40PM
(#18504439)
I haven't had this problem. I wrote a daemon to blend colours for my RGB keyboard in D and it stays below 8192 bytes.
Re:D compilation is too slow and I am forking the compiler
by kristianp on Wednesday November 21, 2018 @10:22PM
(#18507673)
See comment about regexes:
However, D's compile-time metaprogramming facilities allowed us to get ambitious in some places... for instance, std.uni precomputes some Unicode lookup tables during compilation, and std.regex makes heavy use of metaprogramming to compile regular expression strings to D code, again during compilation. As a result, making use of those features will result in heavier load on the compiler.