[OS-JIRA] Created: (CAY-365) Use BitSet to touched attributes

From: jira-norepl..bjectstyle.org
Date: Thu Sep 01 2005 - 23:25:58 EDT

  • Next message: Andrus Adamchik: "Re: Attribute type, editable?"

    Message:

      A new issue has been created in JIRA.

    ---------------------------------------------------------------------
    View the issue:

      http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-365

    Here is an overview of the issue:
    ---------------------------------------------------------------------
            Key: CAY-365
        Summary: Use BitSet to touched attributes
           Type: Improvement

         Status: Assigned
       Priority: Minor

        Project: Cayenne
     Components:
                 Cayenne Core Library
       Versions:
                 1.2 [DEV]

       Assignee: Andrus Adamchik
       Reporter: Gili Tzabari

        Created: Thu, 1 Sep 2005 11:25 PM
        Updated: Thu, 1 Sep 2005 11:25 PM

    Description:
    We should consider using a BitSet to keep track of which attributes were "touched" by the user in order to know which attributes to check for modification and which ones to skip.

    A attribute is said to be "touched" if Cayenne passes the user a mutable reference via a getter method or the user invokes a setter method.

    Consider for example if an ObjEntity contains ten String attributes and the user only set one of them. Checking for modification via a BitSet is theoretically faster than invoking equals() on the underlying object (whether String or otherwise). In fact, for immutable objects it might be enough to use the == operator and simply compare memory addresses.

    ---------------------------------------------------------------------
    JIRA INFORMATION:
    This message is automatically generated by JIRA.

    If you think it was sent incorrectly contact one of the administrators:
       http://objectstyle.org/jira/secure/Administrators.jspa

    If you want more information on JIRA, or have a bug to report see:
       http://www.atlassian.com/software/jira



    This archive was generated by hypermail 2.0.0 : Thu Sep 01 2005 - 23:26:00 EDT