You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Refactor AcceptWay further into a dynamic structure #47
Refactor AcceptWay to use a dynamic List of Encoders instead of a hardcoded set. This would allow for easily adding new evaluation sets for trucks, horses, mtb etc. (up to 4 because of the flag limitation)
Also seperate the logic whether a way is allowed from the property handling to speed up the first parsing run in the 2pass reader.
Every encoder requires some storage (at the moment this is always 8 bits per encoder, but configurable). And the flag is an integer which limits the active encoders in one graph to only 4. One could extend that to more (e.g. via two flag integers) but I'm not sure if that would be useful. I would rather concentrate on less vehicles with more correct routes. (I mean having lots of well configured encoders of which only 4 can be active)
Agreed, 4 are enough.. What I mean is to have lets say 6 well-encapsulated encoders, 4 of which can be active at a time. But select them with some register() method and iterate over a list of encoders instead of hardcoded if( car) if (bike ) etc.
Should be fairly simple. In the encoders, only the shift-value must be assigned dynamically when registering so they will use the right bits and are compatible with any other encoder.
Activity
karussell commentedon May 24, 2013
Every encoder requires some storage (at the moment this is always 8 bits per encoder, but configurable). And the flag is an integer which limits the active encoders in one graph to only 4. One could extend that to more (e.g. via two flag integers) but I'm not sure if that would be useful. I would rather concentrate on less vehicles with more correct routes. (I mean having lots of well configured encoders of which only 4 can be active)
NopMap commentedon May 24, 2013
Agreed, 4 are enough.. What I mean is to have lets say 6 well-encapsulated encoders, 4 of which can be active at a time. But select them with some register() method and iterate over a list of encoders instead of hardcoded if( car) if (bike ) etc.
Should be fairly simple. In the encoders, only the shift-value must be assigned dynamically when registering so they will use the right bits and are compatible with any other encoder.
karussell commentedon May 24, 2013
I agree, but we should test if a loop over not soo many entries has the same speed. But I bet the JIT will unroll the loop and make it fast ..
Merge pull request graphhopper#47 from graphhopper/#29_loading_state