ShortForm: optimize difference
ShortForm: optimize difference

If difference is larger than target string, then target
string is stored in place of difference.

npge/lua-npge,starius/lua-npge,starius/lua-npge,npge/lua-npge,npge/lua-npge,starius/lua-npge