limonovthesecond2

Results 5 comments of limonovthesecond2

There is an almost abandoned [ScreenTranslator ](https://github.com/OneMoreGres/ScreenTranslator) that has such functionality. Perhaps someone will be interested in seeing how this is implemented [here](https://github.com/OneMoreGres/ScreenTranslator/blob/e1ec86f298294360be4f6fae0273949642168d02/share/ci/get_tesseract.py). ![image](https://github.com/crow-translate/crow-translate/assets/118817903/f813503f-9b35-41e9-b24c-b8317d461940)

Another optimization idea. Make the compiler optimize jumps to end. Mindcode often generates `jump label-end `, which can be replaced by `jump 0 ` instead. Example: ``` t = cell1[0]...

Another optimization idea. Replace `and` and `or` expressions with a jump equivalent (not sure if this will work in all cases). Example: ``` t = cell1[0] if t == 1...

Another optimization idea. In loops with expressions such as `if-else` and `case` after the expression is completed, the jump forwards to the next command after the comparing. However, we can...

Remark: The last proposal is useful in programs in which there is one large loop, after which there is not much code and any delay is undesirable