Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Design flaw or documentation issue in ScriptableObject?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
RickB  
View profile  
 More options Jun 1 2010, 5:10 pm
Newsgroups: mozilla.dev.tech.js-engine.rhino
From: RickB <rbullo...@gmail.com>
Date: Tue, 1 Jun 2010 14:10:32 -0700 (PDT)
Local: Tues, Jun 1 2010 5:10 pm
Subject: Design flaw or documentation issue in ScriptableObject?
Hi, all.

When wrapping a specialized collection (which is more or less an
ArrayCollection of HashMaps) in a ScriptableObject, I've encountered
an issue that I think creates a major performance issue with large
collections.

According to the documentation, in order to access an indexed
property, it is required to implement getIds() and return an Integer
value for *each* potential item in the collection.  With a very large
collection, this is obviously absurd.

Question:

Is it really necessary to implement getIds() in this manner, or will
the "has" "get" and "put" methods be invoked directly and is getIds()
only required to support external "tooling".

Thanks,

Rick


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »