Zufu Liu

Results 628 comments of Zufu Liu

For 32bpp bitmap, no padding bytes on each row, so the code just treat the image has `bmp.bmHeight * bmp.bmWidth` pixels and process them as if they are on same...

AVX512 version `RGBAImage::BGRAFromRGBA()` and `BitmapAlphaBlend()` are merged (with minor fixes, https://github.com/zufuliu/notepad4/blob/main/scintilla/test/GraphicTest2.cpp can be changed to test the code), they are disabled: 1. process 8 pixels at a time may left...

AVX512 is uncommon in desktop CPU (especially Intel CPUs after 12 Gen).

Build configuration for AVX512 is added by commit 01a16c5677325c098bf0a837a0738b98b9878ef9. it's tentative, will be replaced with AVX10.X (e.g. AVX10.2) in the further when the later become popular in desktop CPUs.

Some code (line endings detection, brace matching, etc.) has been port to AVX512 (guarded by `NP2_USE_AVX512`), the remaining (UTF-8 validation and image processing) will be added later. I don't have...

Just test big files (hundred MBs with word wrap off and LF / CR+LF line endings) on your system. 1. enable console output, uncomment line above `AttachConsole()` inside `wWinMain()` in...

Here is the script I used to make big files: ```python import json path = r'D:\Program Files\Microsoft Visual Studio\Packages\_Instances\953ef33b\catalog.json' with open(path, encoding='utf-8') as fd: doc = fd.read() catalog = json.loads(doc)...

> simple quick test result: Thanks, so it looks AVX512 is not obviously faster than AVX2. > Seems that the about dialog is not rebuilt It will be rebuilt after...

> and the AVX-512 instruction set may cause the CPU to throttle, so its performance boost might not be as high as expected. I don't have more on this, maybe...

> How about this library: https://github.com/simdutf/ The C++ template code (also https://github.com/simdutf/is_utf8) is hard to isolate only the AVX515 parts.