Skip to content

Edge-based Contraction Hierarchies and Turncost support - #1247

Merged
karussell merged 298 commits into
graphhopper:masterfrom
easbar:turncosts_ch
Feb 1, 2019
Merged

karussell merged 298 commits into
graphhopper:masterfrom
easbar:turncosts_ch

Conversation

@easbar

@easbar easbar commented Dec 19, 2017 •

Copy link
Copy Markdown
Member

This PR shall enable turn costs for contraction hierarchies as described in this paper by R. Geisberger and C.Vetter.

This PR fixes #270 and has the same goal as #912, but follows a rather different approach and is much closer to what is described in the paper. Several of the problems described in #912 are addressed here like multiple loops/p-turns, u-turn detection and fixed size turn cost tables. Fundamentally this is realized by storing two additional integers per shortcut edge, which are set to the
IDs of the first and last original edges that are skipped by the shortcut. Doing this requires
many adjustments of the CH query algorithm (when expanding nodes and when checking bridge nodes where forward and backward searches meet) as well as the node contraction / shortcut searches.

What is working so far:

  • (Hopefully) error-free implementation of the node contraction and query algorithms. There are extensive tests that try to cover all edge cases, some of them compare the query results with the standard Dijkstra implementation for many queries and node contraction orders. So far it looks like all situations are handled correctly. The U-Turn based traversal mode is not yet supported and requires further changes and tests (if it should be supported), see comment below.

Next steps:

  • Integration with previous (node-based) CH code (NodeContractor and PrepareContractionHierarchies) and support for automatic node ordering. So far the nodes can only be ordered in random order or ordered by ID, but this makes no sense for larger graphs. So far EdgeBasedNodeContractor does not return any metrics that can be used for node ordering heuristics.

  • Integration with Graphhopper API and integration tests, see what the performance is like.

  • Performance optimizations: There are many obvious things that can be improved:

    • Probably the most important thing is reusing data structures between the different witness path searches, something like DijkstraOneToMany. For the turn replacement difference algorithm that is being used we need a way to initialize the search with edges adjacent to the start node and it must be possible to initialize them with arbitrary weights.

    • Tuning of the node contraction parameters. The above mentioned paper describes a different metric than the one that is currently used for example. We can start with something simple (edge difference / quotient only for example) and see what the performance is like.

    • Minor stuff: See some of the todos in the code, there is definitely room for improvements.

@easbar

easbar commented Dec 19, 2017

Copy link
Copy Markdown
Member Author

Looks like CHTurnCostTest#testFindPath_highlyConnectedGraph_compareWithDijkstra still fails sometimes. This one is the ultimate bug detector ;)

@easbar

easbar commented Dec 19, 2017

Copy link
Copy Markdown
Member Author

Regarding u-turn based traversal mode: For edge based CH we have to remember in quite a few places to exclude u-turns, which makes it hard sometimes. Would it not be much easier to set the default u-turn cost in TurnWeighting to infinity instead of explicitly checking if we make a u-turn (something like if (!traversalMode.hasUTurnSupport() && edgeId == previousId)) ? Maybe I am missing something, but it looks like we would not need an extra traversal mode if we would only adjust the default u-turn costs ? Or is it done this way because of performance reasons ?

@boldtrn

boldtrn commented Dec 19, 2017

Copy link
Copy Markdown
Member

Great PR! Thanks for this.

if (!traversalMode.hasUTurnSupport() && edgeId == previousId)

I just recently worked on recognizing u-turns. Unfortunately it is not as easy as checking if edgeId == previousId, this should only happen when you place a via point, but each path between two points is calculated separately so this case should not really occur for route calculation itself. More frequently you would face situations that are for example double left or double right turns resulting on the opposite lane of a lane separated street. These are different edges in GH and different ways in OSM, so the id would not be equal.

For example this U-turn won't be recognized by this technique.

The recognizing of these u-turns currently only happens in the instruction calculation, see here.

@karussell

Copy link
Copy Markdown
Member

Cool, thanks a lot for this!

Or is it done this way because of performance reasons ?

The idea was to allow u-turns at certain places to avoid large detours because of some turn restrictions, but as they are implemented they are too slow and also the routes feel often wrong as there might be u-turns at any junction. We could limit those junctions to e.g. dead ends but this could be done with the EDGE_BASED_2DIR traversal too IMO but still the u-turn costs would not be applied to situations mentioned from @boldtrn.

*
* @author Peter Karich
*/
public abstract class GenericDijkstraBidirection<T extends SPTEntry> extends AbstractBidirAlgo {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, probably we could merge with AbstractBidirAlgo and use GenericDijkstraBidirection for bidirectional A* too then.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I thought about this too. There should be quite a bit of code in Astar that can be reused here, but I have not looked close yet.

}
// we can not use in/outEdgeExplorer here because this method will be called within a loop using the
// in/outEdgeExplorer already
EdgeExplorer edgeExplorer = graph.createEdgeExplorer(new DefaultEdgeFilter(flagEncoder, reverse, !reverse));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As creating EdgeExplorers is very expensive we should probably create two additional explorers in the constructor.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure.

@easbar

easbar commented Dec 20, 2017

Copy link
Copy Markdown
Member Author

@boldtrn @karussell

Unfortunately it is not as easy as checking if edgeId == previousId

Yes. Another possibiility where this also fails is if two edges with fwd flags in different directions are used instead of one edge with fwd&bwd, but the osm import does not do this so far I think. In this PR the goal will first be to get the same results as Dijkstra with EDGE_BASED_2DIR and when this works we could try to do the same with EDGE_BASED_2DIR_UTURN. Other kind of u-turns (for example lane switches like you mentioned) that are not detected by the current Dijkstra implementation should probably be first fixed with Dijkstra before we implement this for CH. What do you think ?

The idea was to allow u-turns at certain places

Could we not use a default u-turn cost of infinity and use some finite value at the junctions where it should be allowed ? In the algorithms we would then stop expanding nodes/edges when the weight is infinity. In this case the u-turn behavior could be decided via the turn cost tables and the turn weightings and the algorithms would stay agnostic of the desired u-turn behavior. Just an idea, not sure...

@karussell

karussell commented Dec 20, 2017 •

Copy link
Copy Markdown
Member

should probably be first fixed with Dijkstra before we implement this for CH. What do you think ?

yes, this is for another issue

the algorithms would stay agnostic of the desired u-turn behavior. Just an idea, not sure...

Yes, sounds good. Then we could reduce the traversal modes to just the two node vs. edge based.

@easbar

easbar commented Dec 28, 2017

Copy link
Copy Markdown
Member Author

Update:

  • Integration is mostly done. We can now use the GraphHopper API to prepare a given map for edge-based CH and run CH routing queries with turn costs, just use for example graph.flag_encoders=car|turn_costs=true and you no longer need to set prepare.ch.weightings=no. Here is an example from the integration test in Moscow:
    image
  • The node contraction order is now determined automatically (using only the number of potential shortcuts as heuristic at the moment). Using a common NodeContractor interface with different implementations for edge/node-based graph traversal we can re-use the contraction ordering logic from PrepareContractionHierarchies.
  • The results of the witness path searches are now reused for different outgoing edges in WitnessPathFinder.
  • The witness path searches are now limited by a maximum number of settled edges (currently hard-coded). This is more complicated than in the node-based case, because the witness path searches are not only needed to prove that some shortcut is not needed, but also to find the shortest path between two nodes (including loops at the node to be contracted).

The biggest issue right now is performance, for example the preparation for Germany's smallest state Bremen takes around 45s and the average query time is about 5ms. There are certainly many small/medium possible improvements, many of which are written as todos in the code, but I think first we should try to reduce the number of shortcuts that get introduced. For example at the moment for the Berlin map there are ~100 million shortcuts compared to ~2 million shortcuts in the node-based case without turn costs. This should reduce the performance of both the preparation and the routing queries. It is probably reasonable that in the edge-based case more shortcuts are required, but hopefully not this many. Right now I am optimistic that it can be improved, for example I have not tried the node priority metric given in the paper yet.

@karussell

karussell commented Dec 29, 2017 •

Copy link
Copy Markdown
Member

Have not looked deeply in the sources but tried it and works nicely! (I am using this map https://ahorn.lima-city.de/tr/ to easily see OSM turn restrictions)

I can confirm that more shortcuts are created (for my berlin case it was just a factor of 8) but the preparation took much longer: 40min vs. 8 seconds

just use for example graph.flag_encoders=car|turn_costs=true and you no longer need to set prepare.ch.weightings=no

The config graph.flag_encoders=car|turn_costs=true is already usable for master too, but it is ignored for CH, so no need to set weightings to no. BTW: this makes a new parameter like prepare.ch.turn_costs=true for this feature necessary (when merged), until we improved the performance of preparation, shortcut number and query speed to an acceptable degree.

Most important message: it is really nice that now we have a working implementation that 'just' needs a bit tuning - this was a long way, thanks a lot :) !

@karussell

karussell commented Dec 29, 2017 •

Copy link
Copy Markdown
Member

For example at the moment for the Berlin map there are ~100 million shortcuts compared to ~2 million shortcuts in the node-based case without turn costs.

Ah, strange. Are you including brandenburg? For just Berlin I get ~500K shortcuts compared to 84K for master. The edge count is 112K and 79K nodes. So the goal for Berlin should be under 100K I think :)

@easbar

easbar commented Jan 1, 2018 •

Copy link
Copy Markdown
Member Author

Thanks for testing!

Most important message: it is really nice that now we have a working implementation that 'just' needs a bit tuning

Yes, so far I mostly focused on 'working' and 'tested', 'fast' and 'efficient' should be next ;)

I am using this map https://ahorn.lima-city.de/tr/ to easily see OSM turn restrictions

Ah thats nice, do you use it just to find junctions with turn restrictions or can we also use it as map layer and show our routes ?

For just Berlin I get ~500K shortcuts compared to 84K for master. The edge count is 112K and 79K nodes.

Yes, your numbers are correct, I was using the same map, but accidentally was looking at the number of dijkstras not shortcuts in the log. So for Berlin there are about six (not fifty, like I wrote) times more shortcuts (good news ;)

this makes a new parameter like prepare.ch.turn_costs=true for this feature necessary

Should we be able to switch on/off turn costs at query time provided that the preparation has been done for node & edge based cases ? See GraphHopperIT#testTurnCostsOnOffCH ? For the request this can be done using the Routing.EDGE_BASED hint in GHRequest, but I am not sure how we should support both preparations. For example at the moment we cannot add multiple CarFlagEncoder, [something like new EncodingManager("car,car|turn_costs=true")], because they all have the same name "car".
Why do you think do we need a new parameter prepare.ch.turn_costs=true ? Right now I am enabling turn costs via the flag_encoder property (graph.flag_encoders=car|turn_costs=true). Using the new property we would still be restricted to have this setting globally for all encoders. Not sure if we need something like CH with turn costs for cars and without turn costs for bikes etc.

@karussell

Copy link
Copy Markdown
Member

Should we be able to switch on/off turn costs at query time provided that the preparation has been done for node & edge based cases ?

Here I was just thinking about how early we merge this PR. If we merge it early to avoid too many update work we need the old "node based way" for CH even if there is turn_costs=true specified (which would be then only used for the non-CH stuff like it is done at the moment). If we merge when query & preparation performance is close or just 2x away no backward compatibility config is necessary.

@easbar

easbar commented Jan 1, 2018 •

Copy link
Copy Markdown
Member Author

I was just thinking about how early we merge this PR

Ok, right now I do not see a big problem having this on a separate branch and I would do the / some performance improvements before merging. I could also pick some changes that are not only related to turn costs from this branch and put them in a separate PR.

@easbar

easbar commented Feb 2, 2018

Copy link
Copy Markdown
Member Author

Update: I have made some improvements. Besides some minor improvements local searches are now cancelled entirely as soon as it is clear that the target edge can not be reached via the node to be contracted, it is checked if a shortcut that is about to be added exists already and I implemented the node contraction priority calculation as given in the paper.

For Berlin the contraction now takes about 4 minutes on my machine (about 15min previously) and I measured an average query time of about 13ms. For Bremen) the contraction takes about 25s contraction time and the queries run about 3ms.

However, the number of shortcuts is still very high and I am struggling to find a way to reduce it. For Berlin I am getting about 430k and for Bremen about 110k. The high density of shortcuts edges seems to limit the performance of both the graph contraction and the routing queries. Especially towards the end of the contraction there seem to be just too many shortcut edges that get introduced. Right now I am still hoping to find an error that is responsible for the large number of shortcuts, but having checked many things I am slowly running out of ideas what could be wrong.

Here is a list of things I have already looked into so far (but did not help much at least when I tried them):

  1. Use an array- (instead of map-)based version for WitnessPathFinder similar to DijkstraOneToMany -> not too much improvement and does not help with the number of shortcuts (currently not commited in this branch)

  2. node priority calculation -> I am using edge differences instead of the edge quotients mentioned in the paper, which seem to perform worse. I have not spent too much time trying different linear combinations of the different terms, but whenever I tried varying them it seemed like not too much is changing. --> I suspect this can be used to further improve performance, but this probably is not the main issue.

  3. Try different witness path search algorithms as implemented in EdgeBasedNodeContractor. The turn replacement algorithm should already give the least amount of shortcuts, but the SimpleSearch is simpler and takes less effort. However, right now I think both variants introduce 'too many' shortcuts and take too long to prepare the graph. I was also thinking about a hybrid where we do the 'costly' turn replacement search or the 'fast' simple search depending on some metric, but right now I do not think this is the bottleneck.

  4. Collect all shortcuts to be inserted for a given node and do a batch insert instead of adding them one by one (this is currently done in the node-based version of CH) --> did not seem to help much, because I am checking for duplicate shortcuts when the shortcuts are inserted anyway.

  5. One thing I am doing different than in the paper is that for loop shortcuts I recursively add some helper shortcuts to be able to unpack them later. However, I found that the number of these helper shortcuts is rather small and I (no longer) think that this is the root of the problem of so many shortcuts.

  6. Limiting of local searches: We can not cancel the search entirely, because the witness path search needs to 'find' the shortcut connection (via loops). However, we can discontinue all active leafs of the search that do not belong to a possible connection consisting only of the in- and out edges that are currently checked and loops at the node to be contracted. This is done when the number of settled edges exceeds a certain number (not given in the paper). If this number is too low some witnesses will not be found, but even increasing the limit to a very high number did not significantly reduce the number of shortcuts. So again, I think there is room for some improvement by tuning this parameter, but I could not get a significant improvement doing so so far.

  7. Using fwd/bwd flags on shortcut edges. Right now all shortcuts are used with only the fwd flag. If we use fwd/bwd flags we can potentially reduce the number of EdgeIteratorStates by 50% , which should be beneficial, but it requires some changes, because we then need a more involved way to decide what the 'first' and 'last' original edges of a shortcut are (similar to the edge-key calculation where the two node ids of an edge are used to decide if it is fwd or bwd). So this would definitely improve performance I think, but it does not reduce the 'real' number of shortcuts.

  8. One interesting thing I found was in 382432d where I disabled a previously introduced simple check for duplicate neighbor updates. Disabling this check improved the query time by a factor of 13 (!) on the map for Bremen without changing the number of shortcuts very much (less than 1% difference). I currently have no understanding why this makes such a large difference.

It could be that the rather poor performance can only be improved by a combination of all of the above things, but I am still hoping there is some kind of bottleneck that can be fixed or I am simply forgetting something important.

@karussell (or anybody else interested) maybe you could have a look and notice something ? Not sure how familiar you are with the turncost version of CH, but maybe there is something that was crucial for node-based CH that I am missing ?

For testing I am currently using the CHMeasurement class, which performs the contraction for given OSM data and compares some random queries with normal Dijkstra. It usually also logs some errors, where the calculated weights are different, but they should be very small (I think some rounding issue that I did not find the reason for yet). Afterwards the query time is also measured. During the contraction some statistics are logged (for example we see that a lot of time is spent on neighbor updates and the number of shortcuts that are checked rises dramatically at the end).

@karussell

Copy link
Copy Markdown
Member

Thanks!

I have no idea for a solution but I will have a look and here are my 2 cents:

  • utilizing a shortcut for fwd and bwd give a good boost in my implementation but it makes everything much more complicated and was one of the bigger bug pools :(
  • tuning the heuristic (and some bug fixing, see point before) was a large part of the time I invested
  • If especially the last few percentages introduce so many shortcuts there was a similar problem where the priority recalculation took too long at the end and so I allowed this only for sortedNodes.getSize() < lastNodesLazyUpdates. Stopping the contraction should be completely ok (see nodesToAvoidContract), but for the node based CH the benefits of saved time and storage in the preparation did not outweigh the performance losts. It was like e.g. already when I did the contraction for 99.9% there was already a measurable slow down at query time.
  • In my cases it helped a bit doing the contraction for bigger areas like Germany or if possible Europe to get an idea which shortcuts are unnecessary or similar. But debugging this stuff is hard and takes long. E.g. It took 3 months from having Germany running on my laptop until world wide CH routing was properly working, initially with preparation times of more than 4 days.

Maybe we can at some point do a brainstorming call :) ?

@karussell

Copy link
Copy Markdown
Member

I currently have no understanding why this makes such a large difference.

This is interesting and might be important to understand. Especially in this case - maybe the heuristic for node-based-CH needs other things than the edge-based variant.

@easbar

easbar commented Feb 2, 2018

Copy link
Copy Markdown
Member Author

utilizing a shortcut for fwd and bwd give a good boost in my implementation but it makes everything much more complicated and was one of the bigger bug pools :(

Yes, this is my fear also and the reason why I postponed it so far. However, I think sooner or later it will be required.

tuning the heuristic (and some bug fixing, see point before) was a large part of the time I invested

Just knowing that this took some time already helps and makes me feel less stupid ;)

Maybe we can at some point do a brainstorming call :)

Yes, this would be nice! I will do a bit more analysis, but then I think this would be a very good idea.

If removing this really makes the query faster then I think those neighbor updates are not 'real' duplicates. Also it might be worth to play with neighborUpdatePercentage.

This duplicate neighbor check did not exist in the CH algorithm so far, I introduced it in hope of making the contraction faster because I did not see any reason to update a neighbor node multiple times just because there are multiple edges leading to it (which can happen quickly in edge-based CH). It definitely slows down the queries so I removed it / commented it out for now. The most surprising thing for me is that the number of shortcuts is not really affected, but the query time changes so much. I agree that we should check carefully how the neighbor updates affect the performance, and I have not done this systematically yet.

@easbar

easbar commented Feb 2, 2018

Copy link
Copy Markdown
Member Author

As it is often with 'very interesting' behavior it turns out the slow down of the routing queries when the duplicate neighbor update check was enabled was simply due to a stupid error: The check not only prevented duplicate neighbor updates but also important edge disconnects. Sorry for the confusion.

@karussell

karussell commented Feb 2, 2018 •

Copy link
Copy Markdown
Member

Sorry for the confusion

Really no problem and good that you sorted it out (this smaller issue :))

@easbar

easbar commented Jan 17, 2019

Copy link
Copy Markdown
Member Author

Would that do it for you?

Yes, I think so. This way you can still set isForward/isBackward(encoder) to false in a profile to filter out the edge. Sorry, I was not aware this would make sense for any profile. I thought you would rather set the distance to infinity to block an edge ?

@michaz

michaz commented Jan 17, 2019 •

Copy link
Copy Markdown
Member

Okay, cool. It still seems kind of dangerous / special-case-ish.

PHILOSOPHICAL on
I changed my mental model of our graph several times, but I currently think it is an undirected graph, where edges have one set of attributes per direction, and one family of those attributes-per-direction happens to be "is accessible for mode M".

Which means that I can, for the sake of an algorithm, turn the undirected graph into a directed graph for mode M. Which is what the edge filter is used for, but it is not the only thing it is used for.

Now with loops, the problem is that they don't have two distinct "directions" in the mathematical sense, (because (a,b) == (b,a) given a==b) but the word "direction" above is not meant in the mathematical sense: In the data structure, even the loop has two directions, hence two sets of attributes.

Now when I filter for edges that go in "one direction", I will still get loops that go in the "other direction". Meaning that if I use the filter to do the above transformation into a directed graph, I may get the loop with the wrong of the two sets of attributes.
PHILOSOPHICAL off

@michaz

michaz commented Jan 17, 2019 •

Copy link
Copy Markdown
Member

(Talking to myself now) Also, this seems to be an argument to forbid loops that have "both directions" accessible. Because that would mean that the transformation to a directed graph would duplicate loops (and only loops), which would make it a multigraph and not a graph.

@easbar

easbar commented Jan 17, 2019

Copy link
Copy Markdown
Member Author

Thanks for your explanations!
Unfortunately there is another test that fails: IsochroneResourceTest#requestReverseFlow. This one involves a loop with isForward=true and isBackward=false. I do not understand what this is supposed to mean (it could just as well be the other way around, without any real meaning), but apparently this loop needs to be rejected by the filter to make the test pass...
To make things even more complicated compared to normal loop edges I think the shortcuts loops in edge-based CH do have a meaningful direction which is defined by their first/last original edges. This is the reason I needed the check in DefaultEdgeFilter in the first place.

On the other hand, this seems to be an argument to forbid loops that have "both directions" accessible

I just thought the opposite. I would forbid loops that only have one direction accessible, because there is no way to differentiate between the two (besides edge-based shortcuts, see above...). Or maybe I would just forbid any kind of loops... ;) But I do get your point about the transformation to a directed graph, this is also true :)

@easbar

easbar commented Jan 17, 2019

Copy link
Copy Markdown
Member Author

To give an example, have a look here: https://github.com/easbar/graphhopper/blob/2375b34b211b379c319ba3bb14966462cb7d0498/core/src/test/java/com/graphhopper/routing/ch/EdgeBasedNodeContractorTest.java#L1139

There is a (fwd-only) loop at node 1 and we need to determine the edges incoming to this node. DefaultEdgeFilter.inEdges will not find it, because the loop returns isBackward=false. When instead we would use DefaultEdgeFilter.outEdges we would find the loop, but there is no real reason why it should not be the other way around or it should even make a difference which filter we are using. All we did was call graph.edge(1, 1, dist, false) and this (quite arbitrarily) sets the fwd, but not the bwd flag. I think from this point of view graph.edge() should just have set both (fwd&bwd) flags.

@karussell

karussell commented Jan 18, 2019 •

Copy link
Copy Markdown
Member

I would forbid loops that only have one direction accessible, because there is no way to differentiate between the two

The geometry is one thing which can be used to differentiate between the two. Assume a one-way loop for cars that allows both directions for foot and is accessible only in the reverse direction for bike - such a complicated case should be possible already from the routing and storing side. I remember having issues with one-way loops in the early days, see #162 (also for one more real world one-way loop example)

@easbar in the (mergable) edge flags branch we have the flags always in the same direction (i.e. there is no longer a need to reverse flags when accessing the edge making a few things easier). Would this somehow help?

@karussell

Copy link
Copy Markdown
Member

Likely the Isochrone test needs a fix as it needs access to the one-way loop too regardless of the edge filter, just like in your edge-based case.

The node-based routing is different: either, when there is no waypoint on a loop, we do not care about the loop or we create a virtual node via QueryGraph to e.g. start routing there which avoids this uncertainty.

@easbar

easbar commented Jan 18, 2019

Copy link
Copy Markdown
Member Author

The geometry is one thing which can be used to differentiate between the two

Ok, yes. This also fits with the way of thinking @michaz explained. We cannot differentiate between the two the way the routing is done at the moment, but this is for another issue. So we need a way to have loops that are only forward or backward.

easbar and others added 6 commits January 24, 2019 19:52
Signed-off-by: easbar <[email protected]>
Signed-off-by: easbar <[email protected]>

# Conflicts:
#	core/src/main/java/com/graphhopper/routing/ch/CHAlgoFactoryDecorator.java
#	core/src/main/java/com/graphhopper/routing/ch/PrepareContractionHierarchies.java
#	core/src/main/java/com/graphhopper/storage/CHGraph.java
#	reader-osm/src/test/java/com/graphhopper/reader/osm/GraphHopperOSMTest.java
#	tools/src/main/java/com/graphhopper/tools/Measurement.java
…separate issue; no need for special EdgeFilter anymore; fixes graphhopper#1525
Signed-off-by: easbar <[email protected]>
# Conflicts:
#	core/src/test/java/com/graphhopper/routing/util/NameSimilarityEdgeFilterTest.java

@karussell karussell left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, this is already green now - hurray!

From my side we can merge it.

@easbar I would not really like to squash this huge work as there is likely a huge learning work hidden which is important to keep IMO. Would be merging 297 commits ok? Or do you know some git magic to reduce the number a bit :) ?

Also you need to store the Email you used in the commits into your github account (I think you can easily add it even if you do no longer use actively it), otherwise those many commits do not belong to you.

Signed-off-by: easbar <[email protected]>
@easbar

easbar commented Feb 1, 2019

Copy link
Copy Markdown
Member Author

From my side we can merge it.

yay!

Or do you know some git magic to reduce the number a bit :) ?

Hmm the only thing would be interactive rebase with some squashes ? There are quite a few 'fixes/minor/less important' commits so maybe it would be reduced to about 150 ? Then again sometimes when there are merge commits in between one has to resolve the conflicts again, which could be annoying. In any case this way we would still lose the git hashes (probably sometimes used in the discussion here). Either way I will keep this branch and I can also add it to the core repo. I think I would have squashed everything into one commit, but whatever you like better.

Also you need to store the Email you used in the commits into your github account (I think you can easily add it even if you do no longer use actively it), otherwise those many commits do not belong to you.

Ok, thanks for pointing this out, I added my mail&pgp key.

I added some @author tags btw, hope this is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Turn Costs for CH

6 participants