Skip to content

Conversation

@smacker
Copy link
Contributor

@smacker smacker commented Mar 2, 2018

Improvements for #112
Moving generation of diff to the handler and increasing context. In real life discussion, guys said most probably 6 lines will be alright. Later with diff generation in the handler, we will be able to increase it further or add configuration in UI or do any other improvements easier if we need.

Also, it allows to preprocess diff on backend for #176
(rendering diff is already expensive, adding preprocessing on FE would degrade user experience further)

smacker added 2 commits March 2, 2018 13:07
Signed-off-by: Maxim Sukharev <maxim@sourced.tech>
Signed-off-by: Maxim Sukharev <maxim@sourced.tech>
@smacker smacker requested a review from bzz March 2, 2018 12:13
@smacker smacker mentioned this pull request Mar 2, 2018
@bzz bzz requested a review from carlosms March 2, 2018 15:16
Copy link
Contributor

@bzz bzz left a comment

Choose a reason for hiding this comment

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

LGTM

👍 for tests and flexibility of diff generation

Copy link
Contributor

@dpordomingo dpordomingo left a comment

Choose a reason for hiding this comment

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

So now diffs are going to be calculated every time in backend on every request... ok... LGTM

(let's add some cache in the future if performance is impacted)

@dpordomingo
Copy link
Contributor

you can merge @smacker

@smacker
Copy link
Contributor Author

smacker commented Mar 2, 2018

I didn't add cache now because diff generation is actually very fast. If we ever meet performance problems it will be easy to add it.

@smacker smacker merged commit 16e47ef into src-d:master Mar 2, 2018
This was referenced Mar 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants