[ nice-Bugs-888398 ] strange value dispatch performance
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.lang.nice.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #888398, was opened at 2004-01-31 17:40
Message generated for change (Comment added) made by igouy
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=888398&group_id=12788
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Isaac Gouy (igouy)
Assigned to: Nobody/Anonymous (nobody)
Summary: strange value dispatch performance
Initial Comment:
1) Strange difference in dispatch performance for enum
objects compared to strings or ints?
obj string int
265 125 94
360 94 109
453 94 109
4672 125 109
8891 109 110
2) If you uncomment the section between
// ##### START open comment here
// ##### END
then
\Nice\evaluation\valuedispatch>nicec --sourcepath .. -a
t.jar valuedispatch
nice.lang: parsing
valuedispatch: parsing
valuedispatch: typechecking
valuedispatch: generating code
valuedispatch: linking
An exception has occured in the compiler
Please fill-in a bug report at the following webpage:
http://sourceforge.net/tracker/?
func=add&group_id=12788&atid=112788
Stack trace:
Exception in thread "main" java.lang.OutOfMemoryError
Nice compiler version 0.9.6 prerelease (build 2004.01.31,
17:05:23 UTC)
----------------------------------------------------------------------
>Comment By: Isaac Gouy (igouy)
Date: 2004-02-01 14:50
Message:
Logged In: YES
user_id=536291
So I tried that again, using
class Val {}
let Val One = new Val();
instead of the enum
Similar when there are no more specific implementations:
266 109 110
344 93 110
468 94 110
4656 94 109
8844 109 94
When there are more specific implementations, matching on
Strings is an order of magnitude slower than matching on ints:
2875 49469 515
10422 159953 3593
45016 254625 42641
57640 358313 49281
70484 456344 49625
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=888398&group_id=12788
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn