The Artima Developer Community
Sponsored Link

Agile Buzz Forum
What Whatever.Object isn't good for....

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
What Whatever.Object isn't good for.... Posted: Dec 8, 2007 8:13 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: What Whatever.Object isn't good for....
Feed Title: Michael Lucas-Smith
Feed URL: http://www.michaellucassmith.com/site.atom
Feed Description: Smalltalk and my misinterpretations of life
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Michael Lucas-Smith

Advertisement

So having just posted about how exciting I am with Whatever.Object, I should point out what it's not good for - short lived objects. Specifically, I realized this doing Seaside-Mootools where I was representing a client side Javascript object as a Whatever.Object.

It was good to be able to have a shapeless object to represent another shapeless object, however, Whatever is designed to make the second access to an instance variable fast. That means if you want to make, say, 20 async callbacks, you're running the cost of creating the shape of an async callback javascript object dynamically 20 times instead of just once.

So I replaced Whatever.Object in Seaside-Mootools with a straight Dictionary and the VM load dropped significantly, giving me a nice speed boost. It's interesting to find out what a technique is good for/not good for.

Read: What Whatever.Object isn't good for....

Topic: Sanity Spotted in the Bronx Previous Topic   Next Topic Topic: 6th Sense Analytics Now Tracks Entire Software Development Lifecycle for Microsoft Windows Users

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use