[hibernate-issues] [Hibernate-JIRA] Resolved: (HV-83) Object graph traversed too many times

Hardy Ferentschik (JIRA) noreply at atlassian.com
Fri Feb 27 12:11:39 EST 2009


     [ http://opensource.atlassian.com/projects/hibernate/browse/HV-83?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hardy Ferentschik resolved HV-83.
---------------------------------

    Resolution: Fixed

Now the object graph is not traversed for very group. All groups are evaluated in one traversal. Sequences are still executed by traversing the graph one by one. This could be further optimized as described in the issue.

> Object graph traversed too many times
> -------------------------------------
>
>                 Key: HV-83
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-83
>             Project: Hibernate Validator
>          Issue Type: Bug
>          Components: engine
>            Reporter: Emmanuel Bernard
>            Assignee: Hardy Ferentschik
>             Fix For: 4.0.0.Alpha2
>
>
> You seem to traverse the object graph once per group.
> I made the spec so that multiple traversals were not necessary unless you physically force group sequence.
> Actually the prototype I gave you was doing some clever things to minimize the number of 
> AFAIR I made the spec so that this multiple traversals are not needed unless you physically sequenciate them. In a prototype I had, I actually worked on an algorithm to validate as much groups as possible in a same traversal. Unfortunately I lost it, probably in my hardware crash :(
> The idea was to compute a tree of groups to validate with their respective sequential constraints and run as less cycle as possible at a given time
> e=|- a - b  (b seq after a)
> f=|- c - d  (d seq after c)
> validating e, f would run a and c in // in the same cycle and b and d in the second cycle.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list