0bin
0bin copied to clipboard
Decrypt / uncrypt and syntax hilight in a web worker if available
It will prevent the UI from blocking and should feel faster.
Also, we should start processing the paste before the page rendering (as soon as we got the paste data available), and send events to update the progress bar. The main thread, when dom is ready, will hook on those events and be avaible to udate the css class accordingly.
You mean using a Pygment http API ?
2013/7/7 sametmax [email protected]
It will prevent the UI from blocking and should feel faster.
Also, we should start processing the paste before the page rendering (as soon as we got the paste data available), and send events to update the progress bar. The main thread, when dom is ready, will hook on those events and be avaible to udate the css class accordingly.
— Reply to this email directly or view it on GitHubhttps://github.com/sametmax/0bin/issues/50 .
No, I mean using actual javascript webworker to do what we are currently doing in an other thread instead of the main thread.
Le dim. 07 juil. 2013 20:44:45 CEST, Natim a écrit :
You mean using a Pygment http API ?
2013/7/7 sametmax [email protected]
It will prevent the UI from blocking and should feel faster.
Also, we should start processing the paste before the page rendering (as soon as we got the paste data available), and send events to update the progress bar. The main thread, when dom is ready, will hook on those events and be avaible to udate the css class accordingly.
— Reply to this email directly or view it on GitHubhttps://github.com/sametmax/0bin/issues/50 .
— Reply to this email directly or view it on GitHub https://github.com/sametmax/0bin/issues/50#issuecomment-20575204.
@sametmax that would be a really nice feature. Currently on larger pastes syntax highlight is slow.(And by large I mean like 3.5 mb)