| Summary: | hash and id generation depends on order of elements in passed maps | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | thomas menzel <tmenzel> |
| Component: | Smila | Assignee: | Andreas Weber <Andreas.Weber> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P5 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows Vista | ||
| Whiteboard: | |||
|
Description
thomas menzel
I think we should just sort the keys of the given map inside the ConnectivityHashFactory.createHash() method and access the values in that order. In a crawl/agent context where IO is involved anyway this should not be a lot of overhead, especially as usually only very few attributes should contribute to the hash. hm, not sure if the overhead is really negligible in all cases. maybe we could provide an overloaded version of the method, to also take an ordered map as i suggested while the current method would just sort them by their keys. then it becomes the responsibility of the agent/crawler writer. maybe this issue should be reviewed in light of the new crawler API. it might become obsolete or more pressing with it. any idea? Well ... regarding optimization I learned a simple rule: Don't do it ... (before you really know it's necessary) ;-) So for the moment I would try to keep it simple for the caller. If this really proves to be a performance problem we can still do something about it. Connectivity framework was replaced by new Importing framework. So there's no ConnectivityHashFactory any more. Not think that we have a performance problem there, so I close the issue. |