[Glass] PhysicalSizeOnDisk implementation

Smalltalk at JGFoster.net Smalltalk at JGFoster.net
Tue May 26 08:16:05 PDT 2020


Hi Bruno,

What numbers are you seeing that don’t match the comments? Can you provide an example? Here is what I see:

topaz 1> level 2
topaz 1> run
| a1 a2 |
a1 := Array with: (OrderedCollection new: 1).
a2 := Array with: (OrderedCollection new: 1000).
a1 physicalSize -> a2 physicalSize.
%
a Association
  key                 32
  value               32
topaz 1> run
| a1 a2 |
a1 := Array with: (OrderedCollection new: 1).
a2 := Array with: (OrderedCollection new: 1000).
a1 physicalSizeOnDisk -> a2 physicalSizeOnDisk
%
a Association
  key                 32
  value               32
topaz 1> 

James

> On May 26, 2020, at 7:56 AM, BrunoBB via Glass <glass at lists.gemtalksystems.com <mailto:glass at lists.gemtalksystems.com>> wrote:
> 
> Hi,
> 
> I'm sizing some objects on disk and i got a unexpected result.
> (i read the comments on #physicalSizeOnDisk and #physicalSize)
> 
> But not sure about the following:
> If i have anArray of OrderedCollection --> anArray physicalSizeOnDisk will
> included the sum of physicalSizeOnDisk of all OrderedCollections ?
> 
> From the methods comments it seems no but from the number i'm seeing it
> seems yes.
> 
> regards,
> bruno
> 
> 
> 
> --
> Sent from: http://forum.world.st/GLASS-f1460844.html <http://forum.world.st/GLASS-f1460844.html>
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com <mailto:Glass at lists.gemtalksystems.com>
> https://lists.gemtalksystems.com/mailman/listinfo/glass
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gemtalksystems.com/mailman/private/glass/attachments/20200526/05e38e90/attachment.htm>


More information about the Glass mailing list