[GitHub] flink issue #2628: [FLINK-3722] [runtime] Don't / and % when sorting

2016-10-20 Thread ggevay
Github user ggevay commented on the issue:

https://github.com/apache/flink/pull/2628
  
> I transcribed Quicksort so as to remove considerations of Java 
performance and inlining. It was not clear to me that if we encapsulated the 
index, page number, and page offset into an object that Java would inline the 
various increment and decrement functions. Also, I don't think this looks too 
bad. I'm happy to reformat if that is preferred.

OK, I would say that it is OK like this, but let's see what the others will 
say.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] flink issue #2628: [FLINK-3722] [runtime] Don't / and % when sorting

2016-10-20 Thread greghogan
Github user greghogan commented on the issue:

https://github.com/apache/flink/pull/2628
  
Thanks @ggevay for reviewing. I added a commit with additional comments.

I transcribed `Quicksort` so as to remove considerations of Java 
performance and inlining. It was not clear to me that if we encapsulated the 
index, page number, and page offset into an object that Java would inline the 
various increment and decrement functions. Also, I don't think this looks too 
bad. I'm happy to reformat if that is preferred.

I think this is the best time to investigate alternative methods. I'm not 
seeing how one would sort on top of `InMemorySorter` without deserializing 
records.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] flink issue #2628: [FLINK-3722] [runtime] Don't / and % when sorting

2016-10-14 Thread StephanEwen
Github user StephanEwen commented on the issue:

https://github.com/apache/flink/pull/2628
  
Thanks for these cool experiments. Looks like a nice improvement.
I'll try to dig into your code in the next days...


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---