Thread overview | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
May 22, 2008 jface executable size down from 14 MB to 3 MB | ||||
---|---|---|---|---|
| ||||
by set dsss oneatatime=yes, and build static dwt.lib, dwtx.lib, jface executable size down from 14 MB to 3 MB, and executable compile time down from 60 seconds to 9 seconds.
It's a great news for dwt fans!
--
yidabu <yidabu.spam@gmail.com> http://www.dsource.org/projects/dwin
D 语言-中文(D Chinese): http://www.d-programming-language-china.org/ http://bbs.d-programming-language-china.org/ http://dwin.d-programming-language-china.org/ http://scite4d.d-programming-language-china.org/
|
May 22, 2008 Re: jface executable size down from 14 MB to 3 MB | ||||
---|---|---|---|---|
| ||||
Posted in reply to yidabu | yidabu schrieb:
> by set dsss oneatatime=yes, and build static dwt.lib, dwtx.lib, jface executable size down from 14 MB to 3 MB, and executable compile time down from 60 seconds to 9 seconds.
>
> It's a great news for dwt fans!
>
>
>
wow, that is good news
|
May 22, 2008 Re: jface executable size down from 14 MB to 3 MB | ||||
---|---|---|---|---|
| ||||
Posted in reply to Frank Benoit | Frank Benoit a écrit :
> yidabu schrieb:
>> by set dsss oneatatime=yes, and build static dwt.lib, dwtx.lib, jface executable size down from 14 MB to 3 MB, and executable compile time down from 60 seconds to 9 seconds.
>>
>> It's a great news for dwt fans!
>>
>>
>>
>
> wow, that is good news
>
But the exe works with DMD 1.030 and DWT/JFACE?
|
May 22, 2008 Re: jface executable size down from 14 MB to 3 MB | ||||
---|---|---|---|---|
| ||||
Posted in reply to yidabu | Hello yidabu,
> by set dsss oneatatime=yes, and build static dwt.lib, dwtx.lib, jface
> executable size down from 14 MB to 3 MB, and executable compile time
> down from 60 seconds to 9 seconds.
>
> It's a great news for dwt fans!
>
> D 语言-中文(D Chinese):
> http://www.d-programming-language-china.org/
> http://bbs.d-programming-language-china.org/
> http://dwin.d-programming-language-china.org/
> http://scite4d.d-programming-language-china.org/
Very strange. But I won't complain. :)
So this happens with the most recent dsss in svn?
-JJR
|
May 22, 2008 Re: jface executable size down from 14 MB to 3 MB | ||||
---|---|---|---|---|
| ||||
Posted in reply to arnaud | arnaud schrieb:
> Frank Benoit a écrit :
>> yidabu schrieb:
>>> by set dsss oneatatime=yes, and build static dwt.lib, dwtx.lib, jface executable size down from 14 MB to 3 MB, and executable compile time down from 60 seconds to 9 seconds.
>>>
>>> It's a great news for dwt fans!
>>>
>>>
>>>
>>
>> wow, that is good news
>>
> But the exe works with DMD 1.030 and DWT/JFACE?
DMD 1.029 and 1.030 do not work because they crash in anonymous classes.
DMD 1.028 works.
|
May 22, 2008 Re: jface executable size down from 14 MB to 3 MB | ||||
---|---|---|---|---|
| ||||
Posted in reply to John Reimer | John Reimer schrieb:
>
> Very strange. But I won't complain. :)
>
> So this happens with the most recent dsss in svn?
>
> -JJR
>
>
I tested it with the 0.75 release.
|
May 22, 2008 Re: jface executable size down from 14 MB to 3 MB | ||||
---|---|---|---|---|
| ||||
Posted in reply to Frank Benoit | Frank Benoit a écrit :
> arnaud schrieb:
>> Frank Benoit a écrit :
>>> yidabu schrieb:
>>>> by set dsss oneatatime=yes, and build static dwt.lib, dwtx.lib, jface executable size down from 14 MB to 3 MB, and executable compile time down from 60 seconds to 9 seconds.
>>>>
>>>> It's a great news for dwt fans!
>>>>
>>>>
>>>>
>>>
>>> wow, that is good news
>>>
>> But the exe works with DMD 1.030 and DWT/JFACE?
>
> DMD 1.029 and 1.030 do not work because they crash in anonymous classes.
> DMD 1.028 works.
But oneatatime is with DMD 1.030?
|
May 22, 2008 Re: jface executable size down from 14 MB to 3 MB | ||||
---|---|---|---|---|
| ||||
Posted in reply to arnaud | arnaud schrieb:
> Frank Benoit a écrit :
>> arnaud schrieb:
>>> Frank Benoit a écrit :
>>>> yidabu schrieb:
>>>>> by set dsss oneatatime=yes, and build static dwt.lib, dwtx.lib, jface executable size down from 14 MB to 3 MB, and executable compile time down from 60 seconds to 9 seconds.
>>>>>
>>>>> It's a great news for dwt fans!
>>>>>
>>>>>
>>>>>
>>>>
>>>> wow, that is good news
>>>>
>>> But the exe works with DMD 1.030 and DWT/JFACE?
>>
>> DMD 1.029 and 1.030 do not work because they crash in anonymous classes.
>> DMD 1.028 works.
> But oneatatime is with DMD 1.030?
No, it was about the DSSS option in the DSSS compiler profile.
|
May 24, 2008 Re: jface executable size down from 14 MB to 3 MB | ||||
---|---|---|---|---|
| ||||
Posted in reply to Frank Benoit Attachments:
| 2008/5/22 Frank Benoit <keinfarbton@googlemail.com>:
> arnaud schrieb:
>
>> Frank Benoit a écrit :
>>
>>> arnaud schrieb:
>>>
>>>> Frank Benoit a écrit :
>>>>
>>>>> yidabu schrieb:
>>>>>
>>>>>> by set dsss oneatatime=yes, and build static dwt.lib, dwtx.lib, jface executable size down from 14 MB to 3 MB, and executable compile time down from 60 seconds to 9 seconds.
>>>>>>
>>>>>> It's a great news for dwt fans!
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> wow, that is good news
>>>>>
>>>>> But the exe works with DMD 1.030 and DWT/JFACE?
>>>>
>>>
>>> DMD 1.029 and 1.030 do not work because they crash in anonymous classes. DMD 1.028 works.
>>>
>> But oneatatime is with DMD 1.030?
>>
>
> No, it was about the DSSS option in the DSSS compiler profile.
still too big.
|
May 24, 2008 Re: jface executable size down from 14 MB to 3 MB | ||||
---|---|---|---|---|
| ||||
Posted in reply to Long Chang | Long Chang schrieb:
> still too big.
>
3 MB is without the use of UPX... however
Who defines 'too big' ? What is the limit? What rules do you apply to find that number?
If you have hundreds of source files (tango+dwt+dwtx) it cannot go into a 250k executable.
So what is small enough for you?
And why should you use JFace if you want a mini app?
If you would use a java application that is based on JFace, you need the Java runtime + SWT libs + Jface libs + SWT DLLs/SOs. The compiled DWT binary has all the needed functionality in itself.
SWT and JFace is not optimized for small D applications. As in SWT so are withing JFace many internal dependencies between the classes. So even the little HelloWorld will contain the biggest part of SWT or JFace.
Perhaps DDL can be an option, if big parts of the code can be moved into external libs. But still i don't know if you would count that to the executable size. If you want to distribute your app as a small zip file, you would still need to put the libs into that zip.
|
Copyright © 1999-2021 by the D Language Foundation