Scrolling of Disassembly widget is noticiably slower than in Graph widget
If we open function complex enough, e.g. with 40 basic blocks in Cutter, scrolling of it in Disassembly language lags significantly, while technically the same data in Graph widget can be scrolled way, way faster once rendered.
It looks like closed by https://github.com/rizinorg/cutter/commit/8574f0b0e42a1f0d12599548d9907a56dd236182 - cannot reproduce it anymore.
I can still reproduce this on 2.3.4
@k1gen please provide more details. Does it happen on all files or just some particular ones?
@XVilka I have tried five binaries of different sizes (16kb to 116mb) - the disassembly view is extremely laggy in all of them: Screencast from 2024-10-09 14-19-39.webm the graph view is okay
@k1gen Which OS and CPU do you use? Do you see anything in the logs? If it is a less common OS it might be again a PCRE2 JIT problem.
@Rot127 I have an i5-8350U. I use NixOS. It's pretty common nowadays, so I don't think this is an OS problem.
Then you are likely affected by https://github.com/rizinorg/cutter/issues/3328
Sorry, I still have not taken the time to set up a workable NixOS VM. Do you build Cutter by yourself? If yes, you can try to use this patch: https://github.com/rizinorg/cutter/issues/3328#issuecomment-2066107922. Otherwise I investigate it tomorrow.
I didn't build it myself. When I need Cutter, I enter a nix shell with nix-shell -p "(cutter.withPlugins (ps: with ps; [ rz-ghidra sigdb ]))". I am not a very experienced NixOS user, I do not know how to apply patches to binaries here. I would really appreciate your help.
@k1gen I am sorry, but I also did not managed to build it in a reasonable time. I hope the original contributor will give some feedback on it: https://github.com/NixOS/nixpkgs/pull/347699
@k1gen Did https://github.com/NixOS/nixpkgs/pull/347699 fix it for you?