viq qemacs further experiments

I replaced everywhere the type of sizes with long long. This allows now opening of files larger than 2GB. It is really fast to open even a 4 GB file. With some hacks I made it possible to jump instantly to the end of a 4GB file. I will probably not give up, and will do some optimizations. There are some challenges:

1. line breaks are counted to often. This is not always needed. However do not know how much it costs to go through the 4GB and count the breaks.

2. When moving backwards, it seems that the full buffer is parsed from begin to the current position. This could be done backwards.

qemacs disappointment, so viq is dead before birth

Loading a 4 GB file with qemacs takes less than 1 second. However jumping to the end of the file takes 1 minute. I thought at the begging that there would be some lazy loading behind the scenes, but not. The data is in memory, however going through the buffer is very very slow. I made some local optimizations, but there would be much much to much work to  make such operations faster than with vim.

Viq was intentended to be a project to add vim like interface to qemacs…

viq

My obsession for speed will probably make me abandon my favorite tool vim. Instead I will go back to emacs. Hm.. I mean not really to emacs, but qemacs. I mean not really qemacs, but qvi. That is qemacs with vim like bindings. But qvi does not sound very friendly, so what about viq, spelled WIK, like wiki.