News for hackers. Stuff that matters.
Re:Show HN: A simple note-taking app built in React by marknutter on Tuesday March 31, 2015 @10:13AM (#9296285)
Is there a reason why typing is so slow? It seems like it's really chugging away on something as I type. I would guess there's a 500ms or so delay between hitting a key and it ending up on the notepad. Same goes for clicking to change the cursor placement.
Re:Show HN: A simple note-taking app built in React by teisman on Tuesday March 31, 2015 @02:48PM (#9298927)
Could it be that it is slow because localStorage is updated on every keypress?
Re:Show HN: A simple note-taking app built in React by ny2244111 on Tuesday March 31, 2015 @10:28AM (#9296392)
If you could tell me some of the specs of your system so I can check why it is so laggy that would be great.

One thing that is hacky/a problem with the app is that I wanted to be able to hash tag notes and have the hashtags a different color. Also very soon i'd like to add the ability to highlight text. It's pretty hard to do that smoothly even with the contenteditable attribute.

I decided on a transparent textarea over a div and I sync and transform the content. It is a bit clunky as you say but I anticipate it will get better.

Re:Show HN: A simple note-taking app built in React by bildung on Tuesday March 31, 2015 @01:00PM (#9297910)
Hmm, its fast for me on a way older machine than the siblings have:

Intel Core2 Duo T9600, 4G Ram, Debian 64bit, Chromium 35, adblock plus as the only extension.

I just checked at chrome://gpu/ and I don't have WebGL or any other hardware acceleration feature for CSS etc. enabled. Perhaps the others experience some hardware acceleration gone wrong?

Re:Show HN: A simple note-taking app built in React by hackerboos on Tuesday March 31, 2015 @11:06AM (#9296717)
Slow for me Mac Pro 2.6Ghz i5, 16GB ram, SSD.

Run a JS profile on your code, I think there's some performance bugs.

Re:Show HN: A simple note-taking app built in React by ny2244111 on Tuesday March 31, 2015 @12:06PM (#9297379)
Frustrating. Not able to recreate. There are some unnecessary repaints but can't see much other than that.
Re:Show HN: A simple note-taking app built in React by hackerboos on Thursday April 02, 2015 @06:50PM (#9313651)
Fixed now - whatever you did worked.
Re:Show HN: A simple note-taking app built in React by limeyx on Wednesday April 01, 2015 @04:15PM (#9306524)
If you need "machine specs" for a simple note-taking app something more fundamental seems to be wrong.

It's a note-taking app. It should run fine on a 1980s calculator

Re:Show HN: A simple note-taking app built in React by ny2244111 on Sunday April 05, 2015 @12:55AM (#9323165)
Re:Show HN: A simple note-taking app built in React by noir_lord on Tuesday March 31, 2015 @10:41AM (#9296512)
Input is noticeably slow for me as well.

i5 3570K, 16GB DDR3, FF36 and Chrome 41, Xubuntu 14.04 input speed seems to be equally slow on both, very noticeable if you press and hold a key.

Re:Show HN: A simple note-taking app built in React by edmccard on Tuesday March 31, 2015 @03:13PM (#9299127)
As an extra data point, the typing speed is fine on my old 1.6 Ghz Athlon 2650e, 2G RAM (running FF 36.0.4 under Arch Linux)
Re:Show HN: A simple note-taking app built in React by inglor on Tuesday March 31, 2015 @10:56AM (#9296626)
Slow for me too - i7 3770k, 16gb ram, win 8
Re:Show HN: A simple note-taking app built in React by chrisan on Tuesday March 31, 2015 @01:42PM (#9298355)
i7 16GB ram, latest chrome/ff/ie all work fine.. realize that doesnt help the cause but at least you aren't alone!
Re:Show HN: A simple note-taking app built in React by amelius on Tuesday March 31, 2015 @11:31AM (#9296969)
The reason could be that React always revisits the entire virtual dom tree whenever something changes (even if it is only a very small change).