[Cuis] SpaceTally new printSpaceAnalysis: 1 on: strm

Germán Arduino garduino at gmail.com
Fri Jan 4 18:21:42 CST 2013


Hi!

2013/1/4 Juan Vuletich <juan at jvuletich.org>

> Hi Hannes,
>
>
> H. Hirzel wrote:
>
>> Hello
>>
>> Juan added the following 'Useful expression' to the help menu
>>
>>
>> "'Anaylize memory usage by class."
>>
>>     (String streamContents: [ :strm | SpaceTally new
>> printSpaceAnalysis: 1 on: strm ]) edit.
>>
>>
>> BTW   Anaylize--> Analyze
>>
>>
>
> Thanks. Cuis should include an English spell checker to validate comments
> and strings... Maybe method names too!
>
>
Interesting idea!


>
>  'From Cuis 4.1 of 12 December 2012 [latest update: #1535] on 4 January
>> 2013 at 7:07:51 am'!
>> Class                           code space # instances  inst space percent
>> Bitmap                                4027         479       9766072
>>  73.8
>> CompiledMethod                       19871       16257       1079727
>> 8.2
>> Array                                 1705       16109        568848
>> 4.3
>> String                               19703       16710        357878
>> 2.7
>> TrieNode                              1883       14232        284640
>> 2.2
>> Symbol                                3937       13745        277724
>> 2.1
>> ByteArray                             4547          19        154792
>> 1.2
>> WeakArray                              860          43        146944
>> 1.1
>> TrieLeaf                               560       10674        128088
>> 1.0
>> MethodDictionary                      2118        1310        126148
>> 1.0
>> Association                            662        6436         77232
>> 0.6
>>
>>
>> So the major part of the image is taken by instances of Bitmap.
>>
>> Interesting....
>>
>>
>
> Yes. If you remove the desktop background and reduce the color depth of
> anti aliased fonts, you can reduce the image to about half the size. See
> #reduceCuis. In addition, it is very easy to disable the autocompletion
> mechanism and save some space used by TrieNode and TrieLeaf. BTW, the
> autocompletion implementation is really one of Cuis' "best kept secrets".
> Just check it. It is way better than ecompletion and ocompletion, and it
> would deserve to be adopted for Squeak...
>
>
Wow, nice to know, I will look into asap.




-- 
Sincerely,
Germán Arduino
about.me/garduino
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jvuletich.org/pipermail/cuis_jvuletich.org/attachments/20130104/bf137e4e/attachment-0002.html>


More information about the Cuis mailing list