Levente Uzonyi uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ul.587.mcz
==================== Summary ====================
Name: Collections-ul.587
Author: ul
Time: 18 November 2014, 11:53:01.797 pm
UUID: 30ba8551-0c97-4cf5-b830-9386f272b8d2
Ancestors: Collections-ul.586
Optimized Interval >> #sum.
=============== Diff against Collections-ul.586 ===============
Item was added:
+ ----- Method: Interval>>sum (in category 'accessing') -----
+ sum
+ "Optimized version. Use the sum(n*i - k, i=a..b) = -1/2*(a - b - 1)*(n * (a + b) - 2 * k) equation with a = 1, n = step, b = self size."
+
+ | b |
+ b := self size.
+ ^b * ((b + 1) * step - (step - start * 2)) / 2!
Levente Uzonyi uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ul.587.mcz
==================== Summary ====================
Name: Collections-ul.587
Author: ul
Time: 18 November 2014, 11:53:01.797 pm
UUID: 30ba8551-0c97-4cf5-b830-9386f272b8d2
Ancestors: Collections-ul.586
Optimized Interval >> #sum.
=============== Diff against Collections-ul.586 ===============
Item was added:
+ ----- Method: Interval>>sum (in category 'accessing') -----
+ sum
+ "Optimized version. Use the sum(n*i - k, i=a..b) = -1/2*(a - b - 1)*(n * (a + b) - 2 * k) equation with a = 1, n = step, b = self size."
+
+ | b |
+ b := self size.
+ ^b * ((b + 1) * step - (step - start * 2)) / 2!
Levente Uzonyi uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ul.587.mcz
==================== Summary ====================
Name: Collections-ul.587
Author: ul
Time: 18 November 2014, 11:53:01.797 pm
UUID: 30ba8551-0c97-4cf5-b830-9386f272b8d2
Ancestors: Collections-ul.586
Optimized Interval >> #sum.
=============== Diff against Collections-ul.586 ===============
Item was added:
+ ----- Method: Interval>>sum (in category 'accessing') -----
+ sum
+ "Optimized version. Use the sum(n*i - k, i=a..b) = -1/2*(a - b - 1)*(n * (a + b) - 2 * k) equation with a = 1, n = step, b = self size."
+
+ | b |
+ b := self size.
+ ^b * ((b + 1) * step - (step - start * 2)) / 2!
Chris Muller uploaded a new version of Network to project The Trunk:
http://source.squeak.org/trunk/Network-cmm.151.mcz
==================== Summary ====================
Name: Network-cmm.151
Author: cmm
Time: 24 September 2014, 2:41:23.349 pm
UUID: 74ec9de8-3417-462b-9a74-005dfc2e2130
Ancestors: Network-nice.150
After closing and destroying a SocketStream, reset its buffers back down to 4k in case they had grown to many megabytes.
=============== Diff against Network-nice.150 ===============
Item was changed:
----- Method: SocketStream>>close (in category 'control') -----
close
"Flush any data still not sent
and take care of the socket."
self flush.
+ socket closeAndDestroy: 30.
+ "Reclaim memory consumed by possibly very large buffers."
+ self resetBuffers!
- socket closeAndDestroy: 30!
Chris Muller uploaded a new version of Network to project The Trunk:
http://source.squeak.org/trunk/Network-cmm.151.mcz
==================== Summary ====================
Name: Network-cmm.151
Author: cmm
Time: 24 September 2014, 2:41:23.349 pm
UUID: 74ec9de8-3417-462b-9a74-005dfc2e2130
Ancestors: Network-nice.150
After closing and destroying a SocketStream, reset its buffers back down to 4k in case they had grown to many megabytes.
=============== Diff against Network-nice.150 ===============
Item was changed:
----- Method: SocketStream>>close (in category 'control') -----
close
"Flush any data still not sent
and take care of the socket."
self flush.
+ socket closeAndDestroy: 30.
+ "Reclaim memory consumed by possibly very large buffers."
+ self resetBuffers!
- socket closeAndDestroy: 30!
Chris Muller uploaded a new version of Network to project The Trunk:
http://source.squeak.org/trunk/Network-cmm.151.mcz
==================== Summary ====================
Name: Network-cmm.151
Author: cmm
Time: 24 September 2014, 2:41:23.349 pm
UUID: 74ec9de8-3417-462b-9a74-005dfc2e2130
Ancestors: Network-nice.150
After closing and destroying a SocketStream, reset its buffers back down to 4k in case they had grown to many megabytes.
=============== Diff against Network-nice.150 ===============
Item was changed:
----- Method: SocketStream>>close (in category 'control') -----
close
"Flush any data still not sent
and take care of the socket."
self flush.
+ socket closeAndDestroy: 30.
+ "Reclaim memory consumed by possibly very large buffers."
+ self resetBuffers!
- socket closeAndDestroy: 30!