You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2010/03/13 12:49:27 UTC
[jira] Created: (DIRSHARED-56) Precompute HashCode for
schemaObjects
Precompute HashCode for schemaObjects
-------------------------------------
Key: DIRSHARED-56
URL: https://issues.apache.org/jira/browse/DIRSHARED-56
Project: Directory Shared
Issue Type: Improvement
Affects Versions: 0.9.17
Reporter: Emmanuel Lecharny
Priority: Critical
Fix For: 0.9.18
We must pre-compute the HashCode value for SchemaObject, as those values are used every time we manipulate a hashMap containing an AT, an OC (entries, for instance), and a call to AT/OC.hashCode() is done each time.
This cost a hell lot of CPU time for nothing, as those elements are static.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRSHARED-56) Precompute HashCode for
schemaObjects
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSHARED-56?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12847753#action_12847753 ]
Emmanuel Lecharny commented on DIRSHARED-56:
--------------------------------------------
The best solution woud be to make the SchemaObject Immutable classes. We will need a factory to create schemaObjects.
> Precompute HashCode for schemaObjects
> -------------------------------------
>
> Key: DIRSHARED-56
> URL: https://issues.apache.org/jira/browse/DIRSHARED-56
> Project: Directory Shared
> Issue Type: Improvement
> Affects Versions: 0.9.17
> Reporter: Emmanuel Lecharny
> Assignee: Emmanuel Lecharny
> Priority: Critical
> Fix For: 0.9.19
>
>
> We must pre-compute the HashCode value for SchemaObject, as those values are used every time we manipulate a hashMap containing an AT, an OC (entries, for instance), and a call to AT/OC.hashCode() is done each time.
> This cost a hell lot of CPU time for nothing, as those elements are static.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (DIRSHARED-56) Precompute HashCode for
schemaObjects
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSHARED-56?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny reassigned DIRSHARED-56:
------------------------------------------
Assignee: Emmanuel Lecharny
> Precompute HashCode for schemaObjects
> -------------------------------------
>
> Key: DIRSHARED-56
> URL: https://issues.apache.org/jira/browse/DIRSHARED-56
> Project: Directory Shared
> Issue Type: Improvement
> Affects Versions: 0.9.17
> Reporter: Emmanuel Lecharny
> Assignee: Emmanuel Lecharny
> Priority: Critical
> Fix For: 0.9.19
>
>
> We must pre-compute the HashCode value for SchemaObject, as those values are used every time we manipulate a hashMap containing an AT, an OC (entries, for instance), and a call to AT/OC.hashCode() is done each time.
> This cost a hell lot of CPU time for nothing, as those elements are static.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (DIRSHARED-56) Precompute HashCode for
schemaObjects
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSHARED-56?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny updated DIRSHARED-56:
---------------------------------------
Fix Version/s: (was: 0.9.18)
0.9.19
> Precompute HashCode for schemaObjects
> -------------------------------------
>
> Key: DIRSHARED-56
> URL: https://issues.apache.org/jira/browse/DIRSHARED-56
> Project: Directory Shared
> Issue Type: Improvement
> Affects Versions: 0.9.17
> Reporter: Emmanuel Lecharny
> Priority: Critical
> Fix For: 0.9.19
>
>
> We must pre-compute the HashCode value for SchemaObject, as those values are used every time we manipulate a hashMap containing an AT, an OC (entries, for instance), and a call to AT/OC.hashCode() is done each time.
> This cost a hell lot of CPU time for nothing, as those elements are static.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (DIRSHARED-56) Precompute HashCode for
schemaObjects
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSHARED-56?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844887#action_12844887 ]
Emmanuel Lecharny commented on DIRSHARED-56:
--------------------------------------------
pre-computing the hashcode speedup the server by 25%.
> Precompute HashCode for schemaObjects
> -------------------------------------
>
> Key: DIRSHARED-56
> URL: https://issues.apache.org/jira/browse/DIRSHARED-56
> Project: Directory Shared
> Issue Type: Improvement
> Affects Versions: 0.9.17
> Reporter: Emmanuel Lecharny
> Priority: Critical
> Fix For: 0.9.18
>
>
> We must pre-compute the HashCode value for SchemaObject, as those values are used every time we manipulate a hashMap containing an AT, an OC (entries, for instance), and a call to AT/OC.hashCode() is done each time.
> This cost a hell lot of CPU time for nothing, as those elements are static.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (DIRSHARED-56) Precompute HashCode for
schemaObjects
Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSHARED-56?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Lecharny resolved DIRSHARED-56.
----------------------------------------
Resolution: Fixed
The hashcode is now computed only once.
> Precompute HashCode for schemaObjects
> -------------------------------------
>
> Key: DIRSHARED-56
> URL: https://issues.apache.org/jira/browse/DIRSHARED-56
> Project: Directory Shared
> Issue Type: Improvement
> Affects Versions: 0.9.17
> Reporter: Emmanuel Lecharny
> Assignee: Emmanuel Lecharny
> Priority: Critical
> Fix For: 0.9.19
>
>
> We must pre-compute the HashCode value for SchemaObject, as those values are used every time we manipulate a hashMap containing an AT, an OC (entries, for instance), and a call to AT/OC.hashCode() is done each time.
> This cost a hell lot of CPU time for nothing, as those elements are static.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.