Ben Ogle
bd8c14355c
Move regexes out into variables
2013-10-07 10:28:12 -07:00
Ben Ogle
1a6884ff71
Remove the ALL_CAPS vars replace with CapCamelCase
2013-10-07 10:28:11 -07:00
Ben Ogle
156b6a9490
Make wrapCharacters -> escapeString. Use a regex.
...
The `htmlForScreenRows` benchmark went from ~3.5 ms to ~2.9ms for a
call to htmlForScreenRows over the entire screen range.
🐎
2013-10-07 10:28:11 -07:00
Ben Ogle
5a772d7078
Move back to the node walker and Range()
...
This is slower than the span compute, but rendering lines without
tons of spans is much faster than with
2013-10-07 10:28:11 -07:00
Ben Ogle
8a3f137519
Speed up token html generation. 20ms -> 6ms
...
Character replace was most of it. Removing regex creation, array
creation and joins seems to reduce the GC pressure. Calling 500 times,
GC spent 100ms less time.
2013-10-07 10:28:10 -07:00
Ben Ogle
914288ab86
Wrap each char in a span; compute left position by measuring each span.
...
This is is faster and simpler than the old method. Running each function
20,000 times yielded these results:
Old: 3750ms
This method: 1523ms
By looking up each char's width in a dict: 29ms
2013-10-07 10:28:08 -07:00
Kevin Sawicki
41fc4f7fe6
Use relative require paths in src/ files
2013-09-20 10:02:20 -07:00
Matt Colyer
8e2777ccc0
Get class visibility correct
2013-08-27 10:16:59 -07:00
Kevin Sawicki
76332c76bd
Flatten src directory
...
* Move src/app to src/
* Move src/stdlib to src/
* Remove src/app and src/stdlib from NODE_PATH
2013-08-19 20:13:57 -07:00