Ticket #2 (closed enhancement: fixed)

Opened 5 years ago

Last modified 5 years ago

C code for performance critical sections

Reported by: ian Owned by: ian
Priority: minor Milestone: Urwid 0.9.8
Component: rendering Version:
Keywords: Cc:

Description

There are some performance-critical functions that should be rewritten in C:

  • utable.py functions:
    • get_width
    • decode_one
    • decode_one_right
  • utils.py functions:
    • move_prev_char
    • move_next_char
    • is_wide_char
    • calc_width
    • calc_text_pos
    • within_double_byte

Change History

Changed 5 years ago by ian

I've created a branch for the work that Rebecca Breu has done: source:urwid/branches/rbreu-cmodule

If anyone knows a cross-platform way to package the module, please submit patches for this branch.

I'm hoping to include this code in 0.9.8, if possible.

Changed 5 years ago by ian

  • milestone changed from Urwid 1.0.0 to Urwid 0.9.8

Changed 5 years ago by ian

Rebecca has implemented these functions in source:urwid/branches/rbreu-cmodule

some fixes are in r66. Testing and merging still remain.

Changed 5 years ago by ian

  • status changed from new to closed
  • resolution set to fixed

merged branch to trunk in r76.

Note: See TracTickets for help on using tickets.