D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 5665 - DmdScript Bug, Program.compile is very slow
Summary: DmdScript Bug, Program.compile is very slow
Status: RESOLVED INVALID
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Windows
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-28 01:49 UTC by changlon
Modified: 2015-06-09 05:11 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description changlon 2011-02-28 01:49:43 UTC
I don't know where to report dmdscript bug, so I just put here .

http://gool.googlecode.com/files/test_js.rar

This zip file include ds_cpp.exe( c++ dmdscript),  ds_dmd1.exe (http://www.digitalmars.com/dscript/), ds_dmd2.exe(http://www.dsource.org/projects/dmdscript-2), big_fn.js .


big_fn.js is just define a very big string var , and print it length .

ds_dmd1 and ds_dmd2 use 8000ms to compile this example , but ds_cpp only use 0ms to compile  this example .


I try use dmdscript build a dynamic web template enging,  I hope some body can find the problem and fix it .
Comment 1 changlon 2011-02-28 03:18:40 UTC
dmdscript.value.value.caluHash(d_string) is very slow with big string .
Comment 2 Dmitry Olshansky 2011-09-06 08:48:34 UTC
Thanks for pointing this out, I was maintaining D2 port in my spare time, and will sure have a look at this.
As for DMDscript bugzilla here it is:
http://bugzilla.digitalmars.com/issues/
Comment 3 Infiltrator 2014-03-19 20:44:00 UTC
Everyone: can this bug be closed as it does not seem to relate to D itself?
Comment 4 Dmitry Olshansky 2014-03-20 04:46:24 UTC
OMG that was a long time ago.
In any case this is not a bug with D, but can be reported at github.

I enabled issues for my fork, this is the least I could do:
https://github.com/blackwhale/DMDScript/issues
but I haven't even compiled the thing on recent DMD in the last couple of years.

Linked DigitalMars bugzilla reports HTTP code 500 for me, so not much luck there either.