DJMcMayhem / V

A golfing language inspired by everybody's favorite text editor, vim.
77 stars 9 forks source link

Source of slowness #21

Closed potato44 closed 5 years ago

potato44 commented 7 years ago

According to Stasoid at PPCG(in the comments) the source of the slowness of V is the key_stroke() function in v.py. It includes a 100ms wait.

DJMcMayhem commented 7 years ago

Hmm. I remember this being necessary at one point because otherwise it would cause timing issues (where new keys would be processed before the old keys had finished, causing unpredictable behavior) but I can't think of any examples so I can see if this is still needed. I'll try to look into this more. It would be really really nice to not sleep between keys.

DJMcMayhem commented 7 years ago

The original issue was first found in this chat conversation. I'll start looking for what exactly in that is causing issues, and how to fix it without sleeping.

DJMcMayhem commented 5 years ago

Closed in https://github.com/DJMcMayhem/V/commit/aced470fad746a90415ff2144efea660f0af75b8