React-native-code-push: Text files diff

Created on 30 Nov 2016  路  6Comments  路  Source: microsoft/react-native-code-push

Do you have plan to use google-diff-match-patch calculate Text file diff and merge ?

Most helpful comment

Any update on this? It will be awesome if we can achieve text-based diff patching. Downloading jsbundle of 1 or 2 mb on 2g or 3g network in country like India is a costly affair.

All 6 comments

Hi @lisong, not currently. We currently do a file-based diff (replace each file that has changed, but keep the files that have not changed). This makes sense to me, because most of the size of an app is likely to come from assets, like images and video. Is there any reason you think we should do a text-based diff?

thanks for reply! sometimes you just fix a bug. maybe just a condition and react-native-cli has not split js bundles files, when app contains many business. jsbundles is really very big. it an expensive network. maybe google-diff-match-patch is a choices.

@lisong Thanks for the input. We have added this idea as something we would explore for the next version of Code Push. I am closing this issue here since it has been copied to our backlog.

Any update on this? It will be awesome if we can achieve text-based diff patching. Downloading jsbundle of 1 or 2 mb on 2g or 3g network in country like India is a costly affair.

I second @thecachedbyte, as it is a very important requirement for lite apps designed for low bandwidth constraints.

agree with @thecachedbyte, using google-diff-match-patch will significantly reduce the potential expensive costs may charge to end users.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Adr1ann picture Adr1ann  路  3Comments

ACCTFORGH picture ACCTFORGH  路  3Comments

chrisjrex picture chrisjrex  路  4Comments

vira-khdr picture vira-khdr  路  3Comments

quanzaiyu picture quanzaiyu  路  3Comments