mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-19 14:45:29 +00:00
Draw runs of non-ASCII chars that each start a new cell of width one or two in a tight loop, with the run invariant checks done once and state kept in locals, falling back to the scalar path for anything that needs special handling: combining chars, zero width chars, the image placeholder, existing multicell cells, wrapping, insert mode and charset translation. Cells are written as 64 bit values built in registers, since assembling them as structs makes compilers go through the stack with partial stores that stall on store forwarding. The grapheme segmentation step is cached as it depends only on the state and the segmentation property of the char, which repeat in a run of text, breaking the chain of dependent table lookups between consecutive chars. This speeds up the unicode benchmark by ~30%, drawing CJK text by ~70%. A differential test compares the batched and scalar paths on random operations. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| atexit.py | ||
| base.py | ||
| CascadiaCode-Regular.otf | ||
| check_build.py | ||
| child.py | ||
| choose_files.py | ||
| clipboard.py | ||
| ComfyCode-Regular.ttf | ||
| command_palette.py | ||
| completion.py | ||
| crypto.py | ||
| datatypes.py | ||
| dnd.py | ||
| dnd_kitten.py | ||
| docks.py | ||
| edit_in_kitty.py | ||
| file_transmission.py | ||
| FiraCode-Medium.otf | ||
| fonts.py | ||
| glfw.py | ||
| gr.py | ||
| GraphemeBreakTest.json | ||
| graphics.py | ||
| hints.py | ||
| iosevka-regular.ttf | ||
| iterable_arguments.py | ||
| keys.py | ||
| layout.py | ||
| LiberationMono-Regular.ttf | ||
| main.py | ||
| mouse.py | ||
| multicell.py | ||
| notifications.py | ||
| notify.py | ||
| open_actions.py | ||
| options.py | ||
| panels.py | ||
| parser.py | ||
| program_status.py | ||
| remote_control.py | ||
| resize_edge.py | ||
| resize_fraction.py | ||
| screen.py | ||
| search_query_parser.py | ||
| selection_drag.py | ||
| sessions.py | ||
| shell_integration.py | ||
| shm.py | ||
| single_instance.py | ||
| slang.py | ||
| ssh.py | ||
| tab_bar.py | ||
| tab_drop.py | ||
| tab_workspaces.py | ||
| tui.py | ||
| twemoji_smiley-cff2_colr_1.otf | ||
| utmp.py | ||