Optimize out use of sgr() by storing rendition instead (11% speedup)

This commit is contained in:
Keith Winstein
2012-03-14 01:11:47 -04:00
parent c6c6f8bea0
commit 561a2be761
3 changed files with 18 additions and 14 deletions
+2 -2
View File
@@ -29,13 +29,13 @@ namespace Terminal {
std::string str;
int cursor_x, cursor_y;
std::string current_rendition_string;
Renditions current_rendition;
Framebuffer last_frame;
FrameState( const Framebuffer &s_last )
: x(0), y(0),
str(), cursor_x(0), cursor_y(0), current_rendition_string(),
str(), cursor_x(0), cursor_y(0), current_rendition( 0 ),
last_frame( s_last )
{
str.reserve( 1024 );