3 ms·
> This would be avoided if Notepad was implemented in React Native for Windows. Why? I suppose if your render() function had something like showAstrix = t
by gruez 6y ago
> This would be avoided if Notepad was implemented in React Native for Windows.
Why? I suppose if your render() function had something like
showAstrix = this.state.editorBuffer != this.state.savedBuffer
then it wouldn't be subject to the bug, but the performance would be terrible if you're editing a large file. To get good performance you'd need to use a flag and update it accordingly, which will subject you to the same bug.
- Sohcahtoa82 6y agoYou do have me wondering now how long it takes to compare large strings. DDR4-3200 has a peak transfer rate of 25.6 GB/s. So if you were editing a ridiculously large 1 GB text file, you could only make that comparison ~12.8 times per second, and that's assuming the CPU could compare data that fast.