Hacker News new | ask | show | jobs
by dsego 4485 days ago
Nope, JS is fast enough. But it uses html for rendering the UI and syntax highlighting. Here is one line of C code "if (inLen < 1) {" in atom markup:

  <div class="line"><span class="source c">
  <span class="meta function c"><span class="meta block c">
  <span class="leading-whitespace indent-guide">  
  </span><span class="keyword control c">if</span>
  <span class="meta initialization c"> 
  <span class="punctuation definition parameters c">(</span>
  </span>inLen &lt; <span class="constant numeric c">1</span>)
  <span class="meta block c">
  <span class="punctuation section block begin c">{</span>
  </span></span></span></span></div>
1 comments

Thanks for the reply. So, is there no way of speeding it up without moving away from HTML?

Is the html generated from JS? or is it static? would that make it faster? (newb questions)

Thanks!

I think the editor uses the same underlying technology that Chrome uses to display web pages. That's a lot of overhead for a text editor, but it makes it really easy to extend and do crazy things, basically anything that is possible in a browser. I honestly don't know what would make it faster.